Answer the question
In order to leave comments, you need to log in
What do dotted XML attributes mean?
Hello.
I came across XML with an interesting structure: dotted attributes. Haven't seen this before.
<?xml version="1.0" encoding="ISO-8859-1"?>
<GENERAL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" APP="01" xsi:noNamespaceSchemaLocation="XSD_SPECIFIC.xsd">
<PART itsPART.CHAR.CHAR_ID="CHAR" itsPART.PART.ID="01"/>
</GENERAL>
<?xml version="1.0" encoding="ISO-8859-1"?>
<CHAR xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" CHAR_ID="CHAR" xsi:noNamespaceSchemaLocation="XSD_CHAR_SPECIFIC.xsd">
<PART ID="01" ENABLE="FALSE"/>
</CHAR>
Answer the question
In order to leave comments, you need to log in
I believe that this is an error in the formation of the document. For example, suppose a builder has a setAttr method that applies to a node. There is a PART node.
node.setAttr(getAttrNameFromDB(), "CHAR");
We push the value "<b>itsPART.CHAR.CHAR_ID</b>" into the database. PROFIT!!!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question