Question:

XML ==> using "/" ?!?!?!

by  |  earlier

0 LIKES UnLike

Can i use "/" inside my tags? for example:

<mag>

<time>8/3/2008 12:12:12</time>

</msg>

 Tags:

   Report

2 ANSWERS


  1. Sure why not


  2. the xml parser only looks at the tags enclosing and argument when checking syntax. It would ignore all forward slashes in you arguments.

    The example you gave is not syntactically valid because it there is no closing tag for &lt;mag&gt; and no opening tag for &lt;/msg&gt;

    Of course you could just use the XML entity ⁄ or / which means the same thing.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.