Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7396

Re: large xml file...

From Stanimir Stamenkov <s7an10@netscape.net>
Newsgroups comp.lang.java.programmer
Subject Re: large xml file...
Date 2011-08-26 08:47 +0300
Organization A noiseless patient Spider
Message-ID <j37c1a$pl7$1@dont-email.me> (permalink)
References (1 earlier) <4e5309a2$0$303$14726298@news.sunsite.dk> <j33gfr$u9l$1@speranza.aioe.org> <4e5584ec$0$304$14726298@news.sunsite.dk> <j34kni$tg5$1@dont-email.me> <4e56183b$0$2937$fa0fcedb@news.zen.co.uk>

Show all headers | View raw


Thu, 25 Aug 2011 10:39:17 +0100, /RedGrittyBrick/:
> On 25/08/2011 05:57, Stanimir Stamenkov wrote:
>> Wed, 24 Aug 2011 19:10:26 -0400, /Arne Vajhøj/:
>>
>>> Any correct XML parser should convert the XML &quot; to a " in
>>> a Java String.
>>>
>>> Any correct XML formatter/serializer should convert it back again
>>> when generating new XML.
>>
>> I think any sane XML serializer should not output " as &quot; in text
>> content.
>
> If you use an XML parser to read '<foo delimiter="&quot;">...' you
> will get a structure with an attribute with a value of '"'.
>
> If you serialise that structure back to XML again, I would hope to
> get '<foo delimiter="&quot;">...' again. Am I wrong?

The serializer may choose (or be configured) to output:

<foo delimiter='"'>...

But my point was text content, not attribute values:

<foo>&quot;</foo>

an then:

<foo>"</foo>

-- 
Stanimir

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

large xml file... boris <boris@localhost.domain> - 2011-08-22 20:05 -0400
  Re: large xml file... Ian Shef <invalid@avoiding.spam> - 2011-08-23 00:43 +0000
    Re: large xml file... boris <boris@localhost.domain> - 2011-08-22 20:53 -0400
      Re: large xml file... boris <boris@localhost.domain> - 2011-08-22 20:55 -0400
        Re: large xml file... Ian Shef <invalid@avoiding.spam> - 2011-08-23 19:48 +0000
  Re: large xml file... Arne Vajhøj <arne@vajhoej.dk> - 2011-08-22 21:59 -0400
    Re: large xml file... boris <boris@localhost.localdomain> - 2011-08-24 14:40 -0400
      Re: large xml file... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-08-24 18:59 +0000
      Re: large xml file... Arne Vajhøj <arne@vajhoej.dk> - 2011-08-24 19:10 -0400
        Re: large xml file... Stanimir Stamenkov <s7an10@netscape.net> - 2011-08-25 07:57 +0300
          Re: large xml file... RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2011-08-25 10:39 +0100
            Re: large xml file... Stanimir Stamenkov <s7an10@netscape.net> - 2011-08-26 08:47 +0300

csiph-web