how to adapt the XML_sql2xml - Class ?
| From: | Pfeiffer-Koberstein Immobilien GbR - Ralf Pfeiffer | Date: | Tue, 08 Apr 2003 16:35:16 +0000 |
| Subject: | how to adapt the XML_sql2xml - Class ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4712@lists.php.net to get a copy of this message | ||
Hello,
I'm running the sql2xml - Class on my WAMP-System. So, order to adapt the
functions to generate the xml-output I wish to have, I were studying the
source - code of the sql2xml.php - class - file . There are 2 functions,
which I sill have problems to understand how they work:
- function doSql2Xml($result)
- function setOptions($options, $delete = False)
Could anybody give me a hint how they work, especially the first function.
- I have to adapt the attribute-elements, for example like:
<element ATTRIBUT1="1" ATTRIBUT2="b" ATTRIBUT3="c"/>
- and the structure of the xml-file like:
<immobilie>
<user_defined_anyfield>
<abc1 wert="terst">zum Beispiel
<abc3 www="12345">
<abc4>
<abc:ein>weiterer Elementbaum, der sich über die Deklaration
des abc - Namespaces einfügen lässt
</abc4>
</abc3>
</abc2>
</abc1>
</user_defined_anyfield>
</immobilie>
greetings,
Ralf