Displaying 3 results from an estimated 3 matches for "getxml".
Did you mean:
netxml
2006 Mar 03
3
xml handling
Hello there, im having a problem with the xml handling, i want to get and
xml node and put things in an input text but im a little lost, im using this
code, but isn''t work, what am i doing wrong?
---------------------
<a href="#" onclick="getXML()">Get XML</a>
<input type="text" value="nothing here" id="respuesta" />
<script type="text/javascript">
function getXML(){
var url = ''emperors.xml'';
var myAjax = new Ajax.Request(
url,
{...
2006 Mar 23
4
XML parser fixed
...------------------------------------- */
XMLParser = Class.create();
Object.extend(XMLParser.prototype,
{
initialize: function (XMLFile, options)
{
this.xmlFile = XMLFile;
this.options = options;
this.element = false;
this.XMLParsed = false;
this.getXml();
},
XMLHash: function ()
{
return this.XMLParsed;
},
asHash: function ()
{
if (! this._xmlHash) {
this._xmlHash = this._nodeToHash(this.element);
}
return this._xmlHash;
},
getXml: function ()
{
if(thi...
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class
called XMLDoc. I may add more functionality to it later, hence the more
generic name, but you do something like this to convert XML to a hash:
XMLDoc = Class.create();
Object.extend(XMLDoc.prototype, {
initialize: function (xmlDoc) {
this.element = xmlDoc;
},
asHash: function () {
if (! this._xmlHash) {