Converts a high level representation of a XML document to a low level representation....
Move to
Next Prev
Up Top
See also
read_xml/2/3
write_xml/1/2
term2xml/3
term2xmldoc/3
xml2term/3
xmldoc2term/3
IF Computer > MINERVA > Manual > Reference > Predicates > XML (eXtended Markup Language) terms > term2xmldoc/3

term2xmldoc/3

Converts a high level representation of a XML document to a low level representation.

term2xmldoc(+DocType, +Term, ?XmlTerm)

xmldoc2term/3 converts the high level representation of a XML document in a low level format. This conversion maps term arguments to attributes and subelements and converts basic data to atoms.

Arguments

DocType             type description of a XML document
Term                high level representation of the XML term
XmlTerm             term representing an XML term

Examples

term2xmldoc(
    n1(n2(-atom), a2 = number, a1 = integer, n3(a3 = atom)),
    n1(n2(hello), 1.0, 0, n3(z)),
    XmlTerm).

->

XmlTerm = document( [xml([version = '1.0'])], element(n1, [a1 = '0', a2 = '1.0'], [ element(n2, [], [chardata('hello')]), element(n3, [a3 = 'z'], [])]), [])

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

read_xml/2/3, write_xml/1/2, term2xml/3, term2xmldoc/3, xml2term/3, xmldoc2term/3.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/XML/term2xmldoc/home_en.html
published 2010/3/15 update 2001/12/14 (c) 1996-2009 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS