simple node name question

E

eggie5

How can I escape the illegal node (3g2 & 3gp names below to make the
valid?

<video>
<3g2 type="boolean">true</3g2>
<3gp type="boolean">false</3gp>
<aac type="boolean">false</aac>
<amr type="boolean">false</amr>
<g264 type="boolean">false</g264>

<h263 type="boolean">false</h263>
<id type="integer">1</id>
<max-file type="integer">200000</max-file>
<max-time type="integer">0</max-time>
<mp3g4 type="boolean">true</mp3g4>
<mp4 type="boolean">false</mp4>

<qclep type="boolean">true</qclep>
<x type="integer">128</x>
</video>
 
B

Bjoern Hoehrmann

* eggie5 wrote in comp.text.xml:
How can I escape the illegal node (3g2 & 3gp names below to make the
valid?

There is no escaping mechanism, you have to rename the elements (e.g.,
use threeG2, _3g2, x3g2, ...)
 
J

Joseph Kesselman

eggie5 said:
How can I escape the illegal node (3g2 & 3gp names below to make the
valid?

You can't. XML names have a very specific form. There should be no
reason your names _have_ to start with a number. Fix them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,008
Messages
2,570,270
Members
46,874
Latest member
CyberGateway

Latest Threads

Top