Escape XML.vi bug?

When I convert an empty 2D array of I32 to XML using Flatten To XML then run it through the Escape XML.vi the ouput string contains NULLs.
It seems that the tags with no actual value in between causes a NULL (\00) character to be produced between the tags. Is this right or is it a bug?
Test by sending the constant "" through the "Escape XML.vi" that comes with LabVIEW 6.1.

Yes, this is a bug. The problem is in xml.llb\EscapeChars.vi. The problem is that when the XML In string is empty the while loop still runs once...which produces 0, the default value for a U8. This \00 is now added in between the val tags. To fix this VI just add a case to the case structure for 0 and pass the array straight through.
This bug will be fixed in the next version of LV.

Similar Messages

  • How to escape XML in BPEL?

    I have a part of a outputmessage in an element HTML of xsd:any. This element contains HTML which i have to transform to escaped XML.
    Therefore i created the following embedded java code.
    String htmlContent = ((oracle.xml.parser.v2.XMLElement)getVariableData("l_GetBericht_Output","reply","/ns5:GetBerichtResponse/ns14:Bericht/ns14:HTML")).getFirstChild().getNodeValue() ;
    htmlContent.replaceAll("<","&lt;") ;
    htmlContent.replaceAll(">","&gt;") ;
    setVariableData("TestHTMLContent",htmlContent);
    Message in l_GetBericht_Output starts with;
    <l_GetBericht_Output>
    <part name="reply">
    <sbtn:GetBerichtResponse>
    <ns3:Bericht>
    <ns3:Onderwerp>sdjasldjalsda</ns3:Onderwerp>
    <ns3:Tekst/>
    <ns3:HTML>
    <HTML>
    <div>
    <p>Data</p>
    <p>
    <p>
    de heer ...
    The result of the selection in BPEL variable TestHTMLContent is empty though.
    Anyone any thoughts ?
    Is there a better way to transform XML to escaped XML ?
    Why is my selection null ?
    Cheers,
    Peter

    Try this.
    xpath query for BPEL,  escaping double quotes
    Should work.
    Thanks,
    Vijay

  • Escape XML Strings with JDK class

    Hi,
    can anyone tell me how to escape XML-Strings with classes of the JDK?
    When searching I only was pointed to StringEscapeUtils from apache.commons.lang, but we would prefer to use the JDK instead of integrating an external lib.
    Our aim is to escape an XML attribute, so a CDATA is not applicable for us in this case.
    Thanks
    Jan

    I implemented it by myself:
    public static String escapeXmlAttribute(String attributeValue) {
            StringBuffer result = new StringBuffer();
            for (int c = 0; c < attributeValue.length(); ++c) {
                if (attributeValue.charAt(c) == '"') {
                    result.append("&#34;");
                } else if (attributeValue.charAt(c) == '&') {
                    result.append("&#38;");
                } else if (attributeValue.charAt(c) == '<') {
                    result.append("<");
                } else if (attributeValue.charAt(c) == '>') {
                    result.append(">");
                } else {
                    result.append(attributeValue.charAt(c));
            return result.toString();
        }{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to avoid escaped XML in "Set Workflow Variable" | "By Composing"

    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the right pane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document the XML I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML in its
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task 1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task 1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

    Hi,
    I also have this problem. It seems that a crude way around it, is to use a quick
    fix via calling a business operation that performs string substitution to replace
    the escaped entity references (<) and (>) with "<" ">". I have done this
    and the approach works for me. Just be careful and make sure that the xml string
    your are cleaning up doesn't contain any of these entity reference that you would
    like to keep. Otherwise it will definitily break your xml. I hope you have that
    luxury.
    The easiest way to do is is to write a StringUtil class with a static replace
    function, replace(source, old, new), expose this method as a business operation,
    then call twice to convert your xml string.
    I know this is pretty pathetic, but might help in the meanwhile until BEA provides
    this functionality.
    Lukas
    "Smita Agarwal" <[email protected]> wrote:
    >
    Hi Paul,
    I am getting the exact same problem , have you found a solution for
    it??
    It will be great to know if this problem is solved.
    I am using WLI2.1 sp1 and WLS6.1 sp2, even with these two configuration
    this problem
    is occuring
    cheers,
    Smita
    "Paul Rooney" <[email protected]> wrote:
    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the rightpane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document theXML
    I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML inits
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way
    to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task
    1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task
    1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

  • Parsing String to XML Attribute bug

    Hello!
    I'm trying to convert String to org.w3c.dom.Document with javax.xml.parsers.DocumentBuilder, but when I check my XML Document after creating, I find that all the Attributes are like "" or "&#xa; ". Does anyone have some idea why that problem is and how it can be solved?
    Thanks a lot!
    Svigi

    There are lots of bug reports about Java 5's built-in XML parser screwing up on attribute values. Try forcing Java to use the current version of Xerces (download it) instead of whatever it has built in, if that seems to apply to you. On the other hand it's possible that the bug is in your code too.

  • Escaping xml string

    how to escape <,> in xml string to &lt; ,
    &gt;.is it possible to convert the entire xml string into this
    format
    ex:
    <root> <sample><id> 89
    </id></sample></root>
    this has to be converted into
    &lt; root&gt;. &lt; sample&gt;. &lt;
    id&gt;. 89 &lt; /id&gt;. &lt; /sample&gt;.
    &lt; /root&gt;.

    myString="<root> <sample><id> 89
    </id></sample></root>";
    myString.split("<").join("&lt;");

  • Ejb-jar.xml generation bug?

    Hi,
    I noticed that TopLink seems to forget the tag <primkey-field> and put java.lang.Object instead of Integer in the tag <prim-key-class>?
    Is this an error from me?
    Vlad

    Hi,
    For a JEE5 EJB module, rather than using EJBGen, you can use WLS specific annotations for configuring common settings. If you follow the link below, you can see a list of supported EJB annotations. Disregard the fact that the documentation section title is WebLogic Kodo Annotations. That is incorrect and I've filed a bug for it.
    http://edocs.bea.com/wls/docs103/ejb30/annotations.html#wp1438036.
    Unfortunately, we don't yet support setting all weblogic-ejb-jar.xml configuration values via annoations so in some cases a weblogic-ejb-jar.xml is still required.
    You can hand edit your weblogic-ejb-jar.xml and the example you posted below should work fine.
    - Matt

  • Escape XML problem

    Hi,
    This is a FAQ, however, I did a search before posting to the forum but could not find a definite solution. Here is what I am trying to do:
    A webservice is returning a response XML and I am trying to display it on client console. I am able to display it properly on server side. The response is received by client of type 'Document'.
    I create a transformer to get a string and display it on the console, and this is how it is done:
    TransformerFactory tFactory =
        TransformerFactory.newInstance();
      Transformer transformer = tFactory.newTransformer();
      DOMSource source = new DOMSource(document);
      StreamResult result = new StreamResult(System.out);
      transformer.transform(source, result);I get the writer out of the result and do 'toString()' to get the text. but the output shows & lt; instead of <  and similarly of > alsoWhat am I missing? and how do I fix this? Can anyone help me with this? Many of the posts direct to using the parser, i hope they refer to using DocumentBuilderFactory and then factory.parse(..) to get the document... but as I already have the document I did not use it...
    Thanx in advance.

    What you are missing is the explanation of why that is a problem.
    It's normal to escape "<" as "&lt;" if you are talking about data in a text node. But it is not normal to escape the "<" that starts a tag... unless you have an XML document embedded as a text node in an envelope-type document, in which case its tags are treated as text. This sort of thing happens in web services.
    So, do you have a problem? I'm not convinced you do.

  • XML Comments Bug

    hey fellas
    I have almost wrapped up my project except for one stupid bug that am getting. I'm using Oracle XML parser for Java.9.0
    I am trying to add some xml comments in the output .xml file but it is giving trouble.
    My code:
    ====
    Comment comment =xmldocument.createComment("mary had a lazy lamb");
    xmldocument.appendNode(comment);
    =====
    Now comments are being added in the output xml file. BUT GUESS WHAT, Instead of putting the string like a usual comment in xml like -
    <!-- mary had a lazy lamb -->
    It is putting it like -
    <?#comment mary had a lazy lamb comments?> (exact code)
    This, inadverantly throws an error when I open the file using a browser.
    How to over come this.
    Thanks

    Hi Francine
    Thanks for the response.
    I am extremely sorry for writting incorrect code in my original post but I am using
    =======
    xmldocument.appendChild(comment);
    ========
    and not appendNode(comment);
    The program works fine and shows no error at run time.
    But the output file that is generated [using transform] shows the xml comment code as -
    <?#comment comments comments?> (exact code)
    and not as desired -
    <!-- comments -->
    It would be great if you can test and suggest something.
    Earlier I started with Crimson parser, then shifted to Xerces and finally to ODK XML parser. Both Crimson and Xerces give comment as desired but ODK API is giving the above undesired comment which cannot be interpreted correctly by the web browser. [ODK is preferable 'cuz of its superior processing speed].
    Thanks once again and anticipating a positive response from you.

  • XML Export Bug - Any workarounds?

    Before we go any further, I am running 5.0.3 and I HAVE created a bug report, but since I'm not expecting a new release (bug fix) in the next couple of days/weeks I was hoping the community here might have a workaround or know if there is something I am doing to cause this.
    I'm creating a new project with DSLR 1080p/25 settings.   I've also tried other 1080p/25 settings and it makes no difference.
    I import lots of DSLR 1080p/25 footage (from Canon DSLRs) and several audio only files from a Zoom, recorded at 48Khz.  All footage shows in the project correctly (1080p/25) and the footage shows at 48Khz.  So far so good.
    Drop the footage and audio on to a sequence and export to XML and send to PluralEyes. 
    Now, I've been using PluralEyes with FCP for a while and it's an excellent product - I really can't recommend it enough, and their tech support is also 1st class.  So, with this in mind, it was rather odd that the version for Premiere Pro wasn't syncing as well as the FCP version.  Following a few emails back and forth with Singular Software (PluralEyes) it turns out that some of the files (the audio files) are being exported to the XML file incorrectly.  They are being exported with a rate of 29.97 and not 25.  Not only is the frame rate incorrect, but the duration is set to match 29.97 and not 25.
    Here are some extracts from the XML:
    PPro Exported as :
    <rate>
    <timebase>30</timebase>
    <ntsc>TRUE</ntsc>
    </rate>
    <duration>252824</duration>
    <timecode>
    Should have been:
    <rate>
    <timebase>25</timebase>
    </rate>
    <duration>210897</duration>
    I am wondering if there is anything I could have done to cause this, maybe in the way I imported files or created projects / sequences etc, or if anyone knows of any work around to force PP to correctly interpret these files? 

    The Interpret Footage Option is disabled....

  • Xml finder bugs

    This happened in WLI 7.0.2
    I wanted to post a generic xml when task became ready. I wanted to do this for
    each task in current and future templates that other people in my group will design.
    I had written the xml and it was in my local drive.
    I tried to use the xml finder functionality for adding the xml to publish into
    the repository. It imports but garbles up the xml into a binary string. Due to
    this the original contents of the xml are lost.
    I have tried all kinds of ways to get an xml imported into the repository but
    it does not work. looks like the XML finder has bugs and it does not work.
    Has anyone encountered this issue?
    Thanks
    puneet

    This happened in WLI 7.0.2
    I wanted to post a generic xml when task became ready. I wanted to do this for
    each task in current and future templates that other people in my group will design.
    I had written the xml and it was in my local drive.
    I tried to use the xml finder functionality for adding the xml to publish into
    the repository. It imports but garbles up the xml into a binary string. Due to
    this the original contents of the xml are lost.
    I have tried all kinds of ways to get an xml imported into the repository but
    it does not work. looks like the XML finder has bugs and it does not work.
    Has anyone encountered this issue?
    Thanks
    puneet

  • XML Document from XML Schema Bug

    When an XML document is generated from an XML Schema the XML document does not have all the elements specified in the XML Schema. The XML document only has the root element.
    1. Register an XML Schema.
    2. Create an XML document with File>New>General>XML>XML Document from XML Schema. The "Generate only Required Elements" is unchecked.
    3. The XML document has only the root element.
    In JDeveloper 10.1.3 all the elements in the XML Schema get generated.

    Also, the component palette for the XML document generated from the XML Schema does not list all the elements in the XML Schema, only the root element is listed. Even if elements are specified as required in the XML Schema with minOccurs="1" and the "Generate only Required Elements" checkbox is selected only the root element gets generated.

  • [CS3][CS4][VB] XML, Markup - bug or next "cool" feature ?

    hi
    could anybody please check how it works in JS or AS - what do you get in XML structure - what is tagged - when you try to MarkUp character containing InLine graphic ? or Text object containing only one "character" - InLine graphics
    something like this:
    Set myPageItem = myText.PageItems.Item(a)
    Set myChar = myPageItem.Parent
    With myChart.AssociatedXMLElements.Item(1).Parent.XMLElements.Add("qqq")
         Call .Markup(myChar)
    End With
    robin
    www.adobescripts.co.uk

            Ok, I figured out the problem.  I had read that snippet before and tried it and it didn't work.  I then Dim'd artitem as a compoundpathitem instead of pathitem and it worked on the first iteration of the for each loop.   One the second trip through there was an invalid cast exception..but it had upsized the art!   So I just added try/catch to handle the error and it works!
    For future reference, anyone that reads this will need to add a reference to the CS4(or whichever version) type library COM object, change the hard coded file paths and it should convert from AI to SVG and Scale it up or down by replacing the 125,125 in the scale matrix by whatever percentage you'd like.   The Userinteractionlevel disables any warnings so that it runs automatic.
    Thanks again Carlos...while you didn't give me the exact code I needed, you pointed me at what I had previously dismissed due to a different error.
    -Mark
            Dim illusapp As New Illustrator.Application
            Dim illusdoc As Illustrator.Document
            Dim scalematrix As Illustrator.Matrix
            Dim artitem As Illustrator.CompoundPathItem
            Dim svgOpt = new illustrator.ExportOptionsSVG
            svgOpt.DTD = Illustrator.AiSVGDTDVersion.aiSVG1_0    
            illusapp.UserInteractionLevel = Illustrator.AiUserInteractionLevel.aiDontDisplayAlerts
                illusdoc = illusapp.Open("c:\test\test.ai")
                scalematrix = illusapp.GetScaleMatrix(125,125)
                Try
                    For Each artItem In illusapp.ActiveDocument.PageItems
                        artitem.Transform(scalematrix)
                    Next
                Catch
                End Try
                illusdoc.Export("C:\test\test.svg",Illustrator.AiExportType.aiSVG,svgopt)
                illusdoc.Close

  • FOR ORACLE XML TEAM -- XML TOOLS BUG FIXING POLICY/RESPONSE TIME/RELEASE SCHEDULE

    Hi,
    The release of Oracle XML tools and utilities by Oracle XML team is a significant milestone and is definitely appreciated. However, as part of a large organization, some factors need to be clarified before using these utilities in production softwares.
    I have noticed that XML parsers and other utilities are now coming as part of other softwares like JDeveloper etc. Following are my questions to the Oracle XML team and urgent and prompt reply will be greatly appreciated.
    1. What is the XML tools support policy. Is it only OTN? Can we buy support? Are these utilities supported if large organizations have corporate server licenses. I have read at the XML site the XDK is fully and freely supported by Oracle Word Wide support. What does this mean?
    2. What is the release schedule for the XML tools?
    3. What is the response time?
    Once again, your help and prompt reply will be appreciated.
    Thanks.

    As you noted many of the Oracle XDK components are production. This means that if your company has an Oracle Server Support contract you will get the corresponding level of support for the production XDK components.
    If you don't have one, then OTN is your support resource. We will also have standalone support agreements in the future which you can purchase through the Oracle Store. The response time would be the same as for the server.
    There is not a specific release schedule for components on OTN as they have different development schedules.
    Oracle XML Team
    null

  • XML Portal Bug ??!!

    Hi, I'm writing this XML and XSL code and it's running perfectly on "XMLSPY" but when i use it on Oracle portal I receive the error the page could not be displayed
    plz fine the XML and XSL file hereunder:
    -----XML-----
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="C:\WINNT\Profiles\sitel_em\Desktop\test.xsl"?>
    <dataset>
    <headlines code="PRESS/FR" language="">
    <headline storyid="999153468nL30462124" date="30 Aug 2001" time="08:37" lang="EN">
    <code>[G][RNP][PGE][PMF][EMK][FR][PRESS][LEN][RTRS][PRESS/FR]</code>
    <text>PRESS DIGEST - France - Aug 30</text>
    </headline>
    <headline storyid="999067370nL29426422" date="29 Aug 2001" time="08:43" lang="EN">
    <code>[G][RNP][PGE][PMF][EMK][FR][PRESS][LEN][RTRS][PRESS/FR]<VOWG.DE><EAUG.PA><FMTX.LN><SOGN.PA><FTE.PA><LYOE.PA><EDF.UL></code& gt;
    <text>PRESS DIGEST - France - August 29</text>
    </headline>
    <headline storyid="998890909nL27416527" date="27 Aug 2001" time="07:43" lang="EN">
    <code>[G][RNP][PGE][PMF][EMK][FR][PRESS][LEN][RTRS][PRESS/FR]<CRLP.PA><MRK.N><PHA.N><BAYG.DE><EAUG.PA><FTE.PA><TMM.PA><TECF.PA&gt ;<LAFP.PA></code>
    <text>PRESS DIGEST - France - Aug 27</text>
    </headline>
    <next_headline storyid="998891005nL2463852"/>
    </headlines>
    <headlines code="SPO FR AND" language="">
    <headline storyid="999158007n0948512" date="30 Aug 2001" time="09:53" lang="EN">
    <code>[SPO][RNP][DNP][PSP][EMK][GB][IT][FR][SOCC][LEN][RTRS]</code>
    <text>Soccer-Blanc arrives but move to United still not finalised</text>
    </headline>
    <headline storyid="999145169nN29197209" date="30 Aug 2001" time="06:19" lang="EN">
    <code>[SPO][AUF][RNP][DNP][PSP][EMK][TENN][US][BE][AU][HR][BR][CZ][CH][ES][RU][FR][JP][SE][DE][EC][IT][WEU][EUROPE][LEN][RTRS]</code>
    <text>UPDATE 3-Tennis-Treble chasing Rafter sprints through</text>
    </headline>
    <headline storyid="999126109nN29285117" date="30 Aug 2001" time="01:01" lang="EN">
    <code>[SPO][RNP][DNP][PSP][EMK][TENN][US][FR][WEU][EUROPE][ES][LEN][RTRS]</code>
    <text>Tennis-Clement wins battle of the giant-killers</text>
    </headline>
    <next_headline storyid="999126105nAX2242321"/>
    </headlines>
    <headlines code=".PAFR" language="">
    <headline storyid="999160767nL30307903" date="30 Aug 2001" time="10:39" lang="FR">
    <code>[FA][FB][DNP][PMF][STX][FR][WEU][EUROPE][LFR][RTRS][.PAFR]<ORA.PA><FTE.PA><ACCP.PA><STM.PA><CGEP.PA></code>
    <text>La Bourse de Paris hisite avant la BCE, pataquhs sur France Tel</text>
    </headline>
    <headline storyid="999156701nL30458520" date="30 Aug 2001" time="09:31" lang="FR">
    <code>[FA][DNP][PMF][STX][FR][WEU][EUROPE][LFR][RTRS][.PAFR]<FTE.PA><ORA.PA><CARR.PA><ACCP.PA><CGEP.PA></code>
    <text>La Bourse de Paris en bref - Ouverture en repli de 0,16%</text>
    </headline>
    <session_id>fDpk9U-048Yng6*jaZCOEvkIqUBPF3JPmvM*D8n-KaN9p</session_id>
    </headlines>
    </dataset>
    ------XSL-----
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
    <html>
    <link rel="stylesheet" type="text/css" href="c:\files\projects\reuters files\reuters xsl\reuters.css">
    <body>
    <!-- <xsl:variable name="session" select="dataset/headlines/session_id"/> -->
    <table>
    <th>Revue de presse</th>
    <th>Sport</th>
    <th>Bourse de Paris</th>
    <th>Business</th>
    <th>Politique</th>
    <th>Monde</th>
    </table>
    <xsl:for-each select="dataset/headlines">
    <xsl:if test=".[@code='PRESS/FR']">
    <a name="part1">
    <h3>Revue de presse</h3>
    <table>
    <xsl:for-each select="headline">
    <tr><td class="DATENEWS">
    <xsl:value-of select="@date"/>
    <xsl:value-of select="@time"/>
    </td><td class="NEWS">
    <a >
    <xsl:attribute name="href"> http://ri2.rois.com/ppppp/CTIB/RI3APINEWS?TEXT=<xsl:value-of select="@storyid"/>
    </xsl:attribute>
    <xsl:value-of select="text"/>
    </a></td></tr>
    </xsl:for-each>
    </table>
    </a>
    </xsl:if>
    <xsl:if test=".[@code='SPO FR AND']">
    <a name="part2">
    <h3>Sport</h3>
    <table>
    <xsl:for-each select="headline">
    <tr><td class="DATENEWS">
    <xsl:value-of select="@date"/>
    <xsl:value-of select="@time"/>
    </td><td class="NEWS">
    <a >
    <xsl:attribute name="href"> http://ri2.rois.com/ppppp/CTIB/RI3APINEWS?TEXT=<xsl:value-of select="@storyid"/>
    </xsl:attribute>
    <xsl:value-of select="text"/>
    </a>
    </td></tr>
    </xsl:for-each>
    </table>
    </a>
    </xsl:if>
    <xsl:if test=".[@code='.PAFR']">
    <a name="part3">
    <h3>Bourse de Paris</h3>
    <table>
    <xsl:for-each select="headline">
    <tr><td class="DATENEWS">
    <xsl:value-of select="@date"/>
    <xsl:value-of select="@time"/>
    </td><td class="NEWS">
    <a >
    <xsl:attribute name="href"> http://ri2.rois.com/ppppp/CTIB/RI3APINEWS?TEXT=<xsl:value-of select="@storyid"/>
    </xsl:attribute>
    <xsl:value-of select="text"/>
    </a>
    </td></tr>
    </xsl:for-each>
    </table>
    </a>
    </xsl:if>
    <xsl:if test=".[@code='JOUR']">
    <a name="part4">
    <h3>Business</h3>
    <table>
    <xsl:for-each select="headline">
    <tr><td class="DATENEWS">
    <xsl:value-of select="@date"/>
    <xsl:value-of select="@time"/>
    </td><td class="NEWS">
    <a >
    <xsl:attribute name="href"> http://ri2.rois.com/ppppp/CTIB/RI3APINEWS?TEXT=<xsl:value-of select="@storyid"/>
    </xsl:attribute>
    <xsl:value-of select="text"/>
    </a>
    </td></tr>
    </xsl:for-each>
    </table>
    </a>
    </xsl:if>
    <xsl:if test=".[@code='POL FR AND']">
    <a name="part5">
    <h3>Politique</h3>
    <table>
    <xsl:for-each select="headline">
    <tr><td class="DATENEWS">
    <xsl:value-of select="@date"/>
    <xsl:value-of select="@time"/>
    </td><td class="NEWS">
    <a >
    <xsl:attribute name="href"> http://ri2.rois.com/ppppp/CTIB/RI3APINEWS?TEXT=<xsl:value-of select="@storyid"/>
    </xsl:attribute>
    <xsl:value-of select="text"/>
    </a>
    </td></tr>
    </xsl:for-each>
    </table>
    </a>
    </xsl:if>
    <xsl:if test=".[@code='G FR AND']">
    <a name="part6">
    <h3>Monde</h3>
    <table>
    <xsl:for-each select="headline">
    <tr><td class="DATENEWS">
    <xsl:value-of select="@date"/>
    <xsl:value-of select="@time"/>
    </td><td class="NEWS">
    <a >
    <xsl:attribute name="href"> http://ri2.rois.com/ppppp/CTIB/RI3APINEWS?TEXT=<xsl:value-of select="@storyid"/>
    </xsl:attribute>
    <xsl:value-of select="text"/>
    </a>
    </td></tr>
    </xsl:for-each>
    </table>
    </a>
    </xsl:if>
    </xsl:for-each>
    </body>
    </link>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Plz advice and if you want i will send you by mail the complete document
    Best Regards

    Your XML file seems not well-formed. Would you send the document?

Maybe you are looking for