JDOM and &qout;

From: mali_djuro (mali_djuroMAKNIOVO_at_net.hr)
Date: 01/31/04


Date: Sat, 31 Jan 2004 09:35:59 +0100

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?

thanks in advance.



Relevant Pages

  • Re: JDOM and &qout;
    ... > i used JDOM to create XML file. ... i get data from database and create Document object. ... > After it i want to make convert from document to string. ... It is likely that the good people at JDOM have already considered your ...
    (comp.lang.java)
  • Pattern matching question for Swindle
    ... I'm using PLT scheme with Swindle and SSAX to write a simple program which locates and plays songs using the iTunes Music Library XML file. ... (string "Rhapsody in Blue") ...
    (comp.lang.scheme)
  • Re: Save User Information
    ... Function SetCustomProperty(strPropName As String, intPropType _ ... Dim doc As Document, prp As Property ... Set cnt = dbs.Containers!Databases ' Define Container object. ... Set doc = cnt.Documents!UserDefined ' Define Document object. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Read XML file using OOP
    ... // Open the XML file that has the XML text. ... string make = gcnew String carNode->Attributes ... private int _milage; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Save User Information
    ... >Function SetCustomProperty(strPropName As String, intPropType _ ... > Set cnt = dbs.Containers!Databases ' Define Container object. ... >' to Properties collection of Document object. ... > Dim doc As Document, ...
    (microsoft.public.access.modulesdaovba)