Home > Software engineering >  XML layman for help?
XML layman for help?

Time:10-25

Good warrior, I have not learned XML, I only taught himself CAD LISP, then download a Italian LSP procedures, is written into the XML code with CAD document to save for FODS file directly, however, the contents of this program to export cannot contain Chinese characters, can only guide English letters and Numbers, are supposed to be used to guide the Italian,
His header format is as follows:

 (setq FODS - FILE - the HEADER 
"& lt; ? The XML version=\ \ "1.0" encoding=\ "utf-8 "?>
XMLNS: style=\ "urn: oasis: names: tc: opendocument: XMLNS: style: 1.0 "
XMLNS: text=\ "urn: oasis: names: tc: opendocument: XMLNS: text: 1.0 "
XMLNS: table=\ "urn: oasis: names: tc: opendocument: XMLNS: table: 1.0 "
XMLNS: the draw=\ "urn: oasis: names: tc: opendocument: XMLNS: drawing: 1.0 "
XMLNS: fo=\ "urn: oasis: names: tc: opendocument: XMLNS: xsl-fo - compatible: 1.0 "
XMLNS: xlink=\ \ "http://www.w3.org/1999/xlink"
XMLNS: dc \ "http://purl.org/dc/elements/1.1/"
XMLNS: meta=\ "urn: oasis: names: tc: opendocument: XMLNS: meta: 1.0 "
XMLNS: number=\ "urn: oasis: names: tc: opendocument: XMLNS: datastyle: 1.0 "
XMLNS: the presentation=\ "urn: oasis: names: tc: opendocument: XMLNS: the presentation: 1.0 "
XMLNS: SVG=\ "urn: oasis: names: tc: opendocument: XMLNS: SVG - compatible: 1.0 "
XMLNS: chart=\ "urn: oasis: names: tc: opendocument: XMLNS: chart: 1.0 "
XMLNS: dr3d=\ "urn: oasis: names: tc: opendocument: XMLNS: dr3d: 1.0 "
XMLNS: math=\ \ "http://www.w3.org/1998/Math/MathML"
XMLNS: form=\ "urn: oasis: names: tc: opendocument: XMLNS: form: 1.0 "
XMLNS: script=\ "urn: oasis: names: tc: opendocument: XMLNS: script: 1.0 "
XMLNS: config=\ "urn: oasis: names: tc: opendocument: XMLNS: config: 1.0 "
XMLNS: ooo=\ \ "http://openoffice.org/2004/office"
XMLNS: ooow=\ \ "http://openoffice.org/2004/writer"
XMLNS: oooc=\ \ "http://openoffice.org/2004/calc"
XMLNS: dom=\ \ "http://www.w3.org/2001/xml-events"
XMLNS: xforms=\ \ "http://www.w3.org/2002/xforms"
XMLNS: XSD=\ \ "http://www.w3.org/2001/XMLSchema"
XMLNS: xsi=\ \ "http://www.w3.org/2001/XMLSchema-instance"
XMLNS: RPT=\ \ "http://openoffice.org/2005/report"
XMLNS: of=\ "urn: oasis: names: tc: opendocument: XMLNS: of: 1.2 "
XMLNS: XHTML=\ \ "http://www.w3.org/1999/xhtml"
XMLNS: GRDDL=\ \ "http://www.w3.org/2003/g/data-view#"
XMLNS: tableooo=\ \ "http://openoffice.org/2009/table"
XMLNS: drawooo=\ \ "http://openoffice.org/2010/draw"
XMLNS: calcext=\ "urn: org: documentfoundation: names: experimental: calc: XMLNS: calcext: 1.0 "
XMLNS: loext=\ "urn: org: documentfoundation: names: experimental: office: XMLNS: loext: 1.0 "
Urn: XMLNS: field=\ 'openoffice: names: experimental: ooo - ms - interop: XMLNS: field: 1.0 \ "
Urn: XMLNS: formx=\ "openoffice: names: experimental: ooxml odf - interop: XMLNS: form: 1.0 "
XMLNS: css3t=\ \ "http://www.w3.org/TR/css3-text/" office: version=\ \ "1.2"
Office: mimetype=\ "application/VND. Oasis. Opendocument. Spreadsheet " & gt;" )


Don't know who can help me to change the great god, let it can directly export Chinese,
PS. The format statement to "& lt; ? The XML version=\ \ "1.0" encoding=\ "gb2312 "?> The direct error!

CodePudding user response:

Use utf-8 characters not to go...

CodePudding user response:

Thank you, I've changed to & lt; ? The XML version=\ \ "1.0" encoding=\ "gb2312 "?> So no, save file can't open, after an error directly,
  • Related