dragon_eater
First Post
I know that the xml that I am working on considers those two the same thing so I don't have a problem with it. Plus it does look cleaner when read.
<!DOCTYPE character [
<!ELEMENT character (name, experience, alignment, race,
class, deity, abilityScores, skills, feats, powers, equipment, wealth, current)>
<!ELEMENT name (#PCDATA) >
<!ELEMENT experience (#PCDATA) >
<!ELEMENT alignment (#PCDATA) >
<!ELEMENT race (choice*) >
<!ATTLIST race name CDATA #REQUIRED>
<!ELEMENT class EMPTY>
<!ATTLIST class name CDATA #REQUIRED>
<!ELEMENT deity (#PCDATA) >
<!ELEMENT abilityScores (strength, constitution, dexterity, intelligence, wisdom, charisma) >
<!ELEMENT strength (#PCDATA) >
<!ELEMENT constitution (#PCDATA) >
<!ELEMENT dexterity (#PCDATA) >
<!ELEMENT intelligence (#PCDATA) >
<!ELEMENT wisdom (#PCDATA) >
<!ELEMENT charisma (#PCDATA) >
<!ELEMENT skills (skill*) >
<!ELEMENT skill (#PCDATA) >
<!ELEMENT feats (feat*) >
<!ELEMENT feat EMPTY >
<!ATTLIST feat name CDATA #REQUIRED >
<!ELEMENT powers (atWill*,encounter*,daily*,utility*) >
<!ELEMENT atWill (#PCDATA) >
<!ELEMENT encounter (#PCDATA) >
<!ELEMENT daily (#PCDATA) >
<!ELEMENT utility (#PCDATA) >
<!ELEMENT equipment (item*) >
<!ELEMENT item (#PCDATA) >
<!ATTLIST item quantity CDATA "1" >
<!ATTLIST item units CDATA #IMPLIED >
<!ELEMENT wealth (valuable*) >
<!ELEMENT valuable (#PCDATA) >
<!ATTLIST valuable quantity CDATA "1" >
<!ATTLIST valuable value CDATA #REQUIRED >
<!ELEMENT current (hitPoints?, healingSurges?, actionPoints?, condition*, usedPower* ) >
<!ELEMENT hitPoints (#PCDATA) >
<!ELEMENT healingSurges (#PCDATA) >
<!ELEMENT actionPoints (#PCDATA) >
<!ELEMENT condition (#PCDATA) >
<!ELEMENT usedPower (#PCDATA) >
<!ELEMENT choice (#PCDATA) >
<!ATTLIST choice tag CDATA #REQUIRED >
]>
Good points on player, height, and weight, but gender's actually already in there. If you take a look at 4eCharacter.rnc in the .zip, you'll see a pretty human-readable version of the schema. 4eCharacter.xsd has all the same information, but is much nastier on the eyes.dragon_eater said:Ha, silly me. I didn't even realize that you included that in your file. Shows how little I know.
Edit: Since it is included on the official character sheet I suggest we include:
player
height
weight
gender
and possibly affiliation.
<race name="Dragonborn">
<choice tag="Dragon Breath Element">Fire</choice>
<choice tag="Dragon Breath Ability Score">Strength</choice>
</race>
<race name=Dwarf" />
<race name="Eladrin">
<choice tag="Eladrin Education">Arcana</choice>
</race>
<race name="Elf" />
<race name="Half-elf" >
<choice tag="Language">Draconic</choice>
<choice tag="Dilettante">Cleave</choice>
</race>
<race name="Halfling">
<choice tag="Language">Goblin</choice>
</race>
<race name="Human">
<choice tag="Ability Score Boost">Strength</choice>
<choice tag="Language">Draconic</choice>
<choice tag="Bonus At-Will Power">Cleave</choice>
<choice tag="Bonus Feat">Power Attack</choice>
<choice tag="Bonus Skill">Arcana</choice>
</race>
<race name="Tiefling">
<choice tag="Language">Draconic</choice>
</race>
Looks good! Thanks for bashing that out, it's good to know that the "name plus choices" thing works well for all the races.dragon_eater said:I looked over the schema but I guess I just missed gender.
I checked the different races against the schema and they all work well. The only weird one Dragonborn because their choice is what attribute and element is used for their breath weapon.
Here is what I got. (Not every interesting I know).