D
D
dimkanio2016-08-02 13:05:56
XML
dimkanio, 2016-08-02 13:05:56

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>

And here is another file:
<?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>

What are these dotted attributes? I did not find anything similar in the specification.
It looks like these files are connected ... Maybe some kind of validation? Unfortunately, I don't have XSD.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
werevolff, 2016-08-02
@dimkanio

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 question

Ask a Question

731 491 924 answers to any question