Are XML attributes compulsory? [closed]

badalpatel

New Member
I wanted to know if xml attributes are compulsory. Let me illustrate with an example.\[code\]<myxml> <myelement attr1="value1" attr2="value2" /> <myelement attr1="value3" /></myxml>\[/code\]Will this XML be parsed by most of the XML parsers? I'm mostly interested in knowing whether XML parsers in-built in iOS and Android SDKs will parse this XML correctly and whether parsing will be more difficult for those guys?Please excuse if this question is a partial repetition of any earlier question, but I needed a definitive answer for this.Thanks in advance :)
 
Back
Top