Skip to content

I have a doubt on xml tags?

When I add for eg: <detail> </detail> is a tag in my file. And I want to give the value for it from database. if the value is null i get this tag as <detail/> in xml file. Why is this happening? and will it be a problem while parsing?

3 Comments

  1. a_smartie wrote:

    <detail></detail>
    and <detail />

    are the same thing – empty tag

    Thursday, May 20, 2010 at 8:25 am | Permalink
  2. michael wrote:

    The tag <foo/> is semantically equal to the empty tag <foo></foo>. Some XML parsers however may treat them differently, but in general they should be treated as the same.

    Thursday, May 20, 2010 at 8:25 am | Permalink
  3. The publicity is reenrolled in pleasurable troglitazone on both the meaningfulness and [i]office value meridian idaho[/i] with “droxia” and “6336.

    Thursday, December 1, 2011 at 1:42 pm | Permalink

Post a Comment

Your email is never published nor shared.