XapElement.js toXml and toXmlWithoutAutoAssignedIds return nothing.
-------------------------------------------------------------------
Key: XAP-322
URL: https://issues.apache.org/jira/browse/XAP-322
Project: XAP
Issue Type: Bug
Components: XML Dom / Parsing
Reporter: David Gennaco
Priority: Critical
When calling toXml methods on xap/xml/dom/XapElement nothing is returned. This
appears to be new. The internal string buffer for these methods is not being
set to anything. The following changes in toXml and toXmlWithoutAutoAssignedIds
fixes the problem:
toXml:
From-->
/**
* Returns an XML string representing this element and all children.
*
* @param prettyPrint If true print this in human-readable form with spacing.
*/
xap.xml.dom.XapElement.prototype.toXml = function ( prettyPrint ) {
var sbuf = "";
this._toStringHelper( this, sbuf, 0, prettyPrint, true );
return sbuf;
};
to-->
/**
* Returns an XML string representing this element and all children.
*
* @param prettyPrint If true print this in human-readable form with spacing.
*/
xap.xml.dom.XapElement.prototype.toXml = function ( prettyPrint ) {
var sbuf = "";
sbuf = this._toStringHelper( this, sbuf, 0, prettyPrint, true );
return sbuf;
};
toXmlWithoutAutoAssignedIds:
from-->
/**
* Returns an XML string representing this element
* and all children without any auto-generated IDs.
*
* @param prettyPrint If true print this in human-readable form with spacing.
*/
xap.xml.dom.XapElement.prototype.toXmlWithoutAutoAssignedIds = function(
prettyPrint ) {
var sbuf = "";
this._toStringHelper( this, sbuf, 0, prettyPrint, false );
return sbuf;
};
to-->
/**
* Returns an XML string representing this element
* and all children without any auto-generated IDs.
*
* @param prettyPrint If true print this in human-readable form with spacing.
*/
xap.xml.dom.XapElement.prototype.toXmlWithoutAutoAssignedIds = function(
prettyPrint ) {
var sbuf = "";
sbuf = this._toStringHelper( this, sbuf, 0, prettyPrint, false );
return sbuf;
};
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.