i am currenty trying around with the functionality of the new dom extension, but i have still problem getting the schema functions working. first the bundled version of libxml seems to have problems validating against schema when i use global element definitions. i don't know if the actual version of libxml has fixed this problems but i haven't even found a possibility to update it. does anybody know if libxml will still be bundled with the dom extension in 5.1? is there any other way to update it?
the other problem is that i can't get getElementById() working when i use xml schema i have already tried every way described on the bitflux-site about that topic - including the xml:id way - but it does not work. am i just too stupid or does anyone else have a similar problem? do you know if it is necessary to use dtd's to get getElementById()-support? if i couldn't use it with xsd that would be a serious problem i think. thanks a lot,
j.Have you looked at SimpleXML and Xpath? If you only need to read XML, then SimpleXML is definitely the best approach
I don't know much about the libxml extension though sorry.There are four different questions in your original post. Perhaps ask one at a time and you might get better results (code snippets help too.)You should be able to use DOM methods (getElementById() for example) regardless if your validating or not, provided your XML is well formed?
As for your other problem I'd suggest if possible you use RelaxNG as an alternative
the other problem is that i can't get getElementById() working when i use xml schema i have already tried every way described on the bitflux-site about that topic - including the xml:id way - but it does not work. am i just too stupid or does anyone else have a similar problem? do you know if it is necessary to use dtd's to get getElementById()-support? if i couldn't use it with xsd that would be a serious problem i think. thanks a lot,
j.Have you looked at SimpleXML and Xpath? If you only need to read XML, then SimpleXML is definitely the best approach
I don't know much about the libxml extension though sorry.There are four different questions in your original post. Perhaps ask one at a time and you might get better results (code snippets help too.)You should be able to use DOM methods (getElementById() for example) regardless if your validating or not, provided your XML is well formed?
As for your other problem I'd suggest if possible you use RelaxNG as an alternative