We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
CFType creates empty tags in short notation, which is very useful. But it does not work for empty strings.
For empty strings we got which should be I have a little patch for you that might fix this issue.
Here is the patch for CFType.php:62
/**
Get XML-Node.
@param DOMDocument $doc DOMDocument to create DOMNode in
@param string $nodeName Name of element to create
@return DOMNode Node created based on CType
@uses $value as nodeValue */ public function toXML(DOMDocument $doc, $nodeName) { $node = $doc->createElement($nodeName);
if ('' != $this->value) { $text = $doc->createTextNode($this->value); $node->appendChild($text); } return $node; }
The text was updated successfully, but these errors were encountered:
fixing issue #11
d0e9451
Fixed in commit d0e9451
Sorry, something went wrong.
DIOHz0r
btry
No branches or pull requests
Hi,
CFType creates empty tags in short notation, which is very useful. But it does not work for empty strings.
For empty strings we got which should be
I have a little patch for you that might fix this issue.
Here is the patch for CFType.php:62
/**
Get XML-Node.
@param DOMDocument $doc DOMDocument to create DOMNode in
@param string $nodeName Name of element to create
@return DOMNode Node created based on CType
@uses $value as nodeValue
*/
public function toXML(DOMDocument $doc, $nodeName) {
$node = $doc->createElement($nodeName);
if ('' != $this->value) {
$text = $doc->createTextNode($this->value);
$node->appendChild($text);
}
return $node;
}
The text was updated successfully, but these errors were encountered: