I am utilizing PL/SQL from an ORACLE database. Pulling XML from a CLOB. What is am attempting to do is validate that the Thousands of XML have the correct attributes for each element. Therefore what I was attempting to ask is How do I get the Attribute Names not the value of the attribute.
The fully enpowered tool to do validation is schema: but you need to have one. If you pull xml out as a textstream or saved to a string variable, you can load it to a dom parser and apply all the xpath method to get all the attributes (such as "//@*"). Thereafter, you know all the names of all the attributes in the document; and its value and its owner... Thereby, you can write short focused validation on specific part of the document.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.