XML Transform problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Demon News

    #1

    XML Transform problem

    I'm trying to transform an xml file that contains empty short elements like
    the following:

    <element attrib="abc"/>

    using the XmlTransform class. But I cannot seem to preserve the short format
    as everytime it get's converted to the longer format of:

    <element attrib="abc"></element>

    I need to preserve the shorter format, has anyone else had this problem or
    got a solution?

    thanks





  • Pascal Schmitt

    #2
    Re: XML Transform problem

    Hello!
    [color=blue]
    > I'm trying to transform an xml file that contains empty short elements like
    > the following:
    >
    > <element attrib="abc"/>
    >
    > using the XmlTransform class. But I cannot seem to preserve the short format
    > as everytime it get's converted to the longer format of:
    >
    > <element attrib="abc"></element>
    >
    > I need to preserve the shorter format, has anyone else had this problem or
    > got a solution?[/color]

    How does your XSLT look like?

    <e a="{$someXPath} " />
    usually works for me.



    --
    Pascal Schmitt

    Comment

    Working...