carrriage return in XML elements non-standard??

  • Does anyone know if this is valid XML...

    <test>

    my test data line1

    my test data line2

    </test>

    I have a customer who is saying that carriage returns in XML are not valid XML!? Im sure they are, arn't they?

  • ok, found it on w3...

    im write, customer wrong. For any reference...

    http://www.w3.org/TR/REC-xml

    2.2 Characters

    Quote

    [

    Legal characters are tab, carriage return, line feed, and the legal characters of Unicode and ISO/IEC 10646.

    ]

  • Text between to tags is just that, Text.

    Open the dicument with IE or XML Spy. If both of them render the document, what you have is fine.

    You could, for special chars, use CDATA.

    <test><![CDATA[ bla bl some special stuff]]--></test>

    Cheers,

    Crispin

    Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!

  • quote:


    im write, customer wrong.


    How many times has this happened?

    Cheers,

    Crispin

    Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!

  • i knew they were gonna be bother!! they are using our XML interface (.NET & SQL 2K XML) with PhP!!

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply