[xmljs-users] New to XML-- question about a tag format
Brought to you by:
djoham,
witchhunter
From: Fumigator <fum...@ar...> - 2004-11-11 03:01:47
|
HI! I'm playing with xml for <SCRIPT>, having fun, but have a question. There is a specific xml file that was created by some random guy that contains tags that look like this: <recipe name="Dark Brown" cost="1375" sellback="1250" skill="216"> <ingredient quantity="1" name="Crushed Juniper Berries" dropped="0" /> <ingredient quantity="1" name="Thin Metal Flask" dropped="0" /> <ingredient quantity="6" name="Alum" dropped="0" /> <ingredient quantity="6" name="Flask of Water" dropped="0" /> </recipe> The Classic DOM does not parse the <ingredient> tags correctly. Or I should say, I'm not sure that format of "<ingredient />", rather than "<ingredient></ingredient>", is legal. Would the W3C DOM parse this tag correctly? I tried it first, but was getting an exception error with it using Firefox. Any suggestions? -Randy Whitaker |