Force attribute exists in tags in XML

Someone

New Member
How to remove all tags when parsing XML document if they don't have specific attribute? For example I want that all tags (except root of course) to have name attribute. I am using XML to have tree database and having tags without name simply doesn't have a sense.Of course I just could iterate over all tags (deeply) and check if attribute exist but it will take some time with bigger files.I guess there should be some option to do it with XMLParser... maybe using some schema?
 
Back
Top