Re: JDOM and &qout;
From: Raymond DeCampo (rdecampo_at_spam-I-am-not.twcny.rr.com)
Date: 02/01/04
- Next message: Nick Maclaren: "Re: Mars Rover Not Responding"
- Previous message: Raymond DeCampo: "Re: Using pointers in Java"
- Next in thread: mali_djuro: "Re: JDOM and &qout;"
- Reply: mali_djuro: "Re: JDOM and &qout;"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jan 2004 23:15:44 GMT
mali_djuro wrote:
> Hi all,
> i used JDOM to create XML file.
> first, i get data from database and create Document object. in some data i
> have quotas, so it makes replacment in content of elements. for example:
> if i have "Hi" in database, i will have "Hi" in content of
> element. And it is ok, because in xml does not exist ", at least i think
> that.
> After it i want to make convert from document to string. I used
>
> XMLOutputter serializer = new XMLOutputter();
> String output = serializer.outputString(document);
>
> now, when i look what's happened with "Hi" i found following
> string
> "Hi"
> it makes conversion of & again, and that is not ok.
>
> has someone similiar problem? or do you know how to solve it?
>
> i can make parsing of string again and cut what is wrong, but is it possible
> to set something without that?
>
Friend,
It is likely that the good people at JDOM have already considered your
problem and are accounting for it themselves. So, it is probably safe
to simply pass "Hi" directly to the JDOM API without prior escaping.
Ray
- Next message: Nick Maclaren: "Re: Mars Rover Not Responding"
- Previous message: Raymond DeCampo: "Re: Using pointers in Java"
- Next in thread: mali_djuro: "Re: JDOM and &qout;"
- Reply: mali_djuro: "Re: JDOM and &qout;"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|