diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/qdomdocument.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/qdomdocument.html')
-rw-r--r-- | doc/html/qdomdocument.html | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/doc/html/qdomdocument.html b/doc/html/qdomdocument.html index e236b1098..01e3a006f 100644 --- a/doc/html/qdomdocument.html +++ b/doc/html/qdomdocument.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p>The TQDomDocument class represents an XML document. <a href="#details">More...</a> <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when TQt is built with thread support.</p> -<p><tt>#include <<a href="qdom-h.html">qdom.h</a>></tt> +<p><tt>#include <<a href="qdom-h.html">ntqdom.h</a>></tt> <p>Inherits <a href="qdomnode.html">TQDomNode</a>. <p><a href="qdomdocument-members.html">List of all member functions.</a> <h2>Public Members</h2> @@ -126,14 +126,14 @@ tag with <a href="#elementsByTagName">elementsByTagName</a>() or with <a href="# <p> The TQDom classes are typically used as follows: <pre> TQDomDocument doc( "mydocument" ); - <a href="qfile.html">TQFile</a> file( "mydocument.xml" ); - if ( !file.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_ReadOnly</a> ) ) + <a href="ntqfile.html">TQFile</a> file( "mydocument.xml" ); + if ( !file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) return; if ( !doc.<a href="#setContent">setContent</a>( &file ) ) { - file.<a href="qfile.html#close">close</a>(); + file.<a href="ntqfile.html#close">close</a>(); return; } - file.<a href="qfile.html#close">close</a>(); + file.<a href="ntqfile.html#close">close</a>(); // print out the element names of all elements that are direct children // of the outermost element. @@ -168,7 +168,7 @@ representing the XML document is deleted. <a href="qdomtext.html">TQDomText</a> t = doc.<a href="#createTextNode">createTextNode</a>( "Hello World" ); tag.<a href="qdomnode.html#appendChild">appendChild</a>( t ); - <a href="qstring.html">TQString</a> xml = doc.<a href="#toString">toString</a>(); + <a href="ntqstring.html">TQString</a> xml = doc.<a href="#toString">toString</a>(); </pre> <p> For further information about the Document Object Model see @@ -183,7 +183,7 @@ TQDomDocument documentation. </h3> Constructs an empty document. -<h3 class=fn>explicit <a name="TQDomDocument-2"></a>TQDomDocument::TQDomDocument ( const <a href="qstring.html">TQString</a> & name ) +<h3 class=fn>explicit <a name="TQDomDocument-2"></a>TQDomDocument::TQDomDocument ( const <a href="ntqstring.html">TQString</a> & name ) </h3> Creates a document and sets the name of the document type to <em>name</em>. @@ -203,13 +203,13 @@ will also change the other. If you want to make a <a href="shclass.html#deep-cop </h3> Destroys the object and frees its resources. -<h3 class=fn><a href="qdomattr.html">TQDomAttr</a> <a name="createAttribute"></a>TQDomDocument::createAttribute ( const <a href="qstring.html">TQString</a> & name ) +<h3 class=fn><a href="qdomattr.html">TQDomAttr</a> <a name="createAttribute"></a>TQDomDocument::createAttribute ( const <a href="ntqstring.html">TQString</a> & name ) </h3> Creates a new attribute called <em>name</em> that can be inserted into an element, e.g. using <a href="qdomelement.html#setAttributeNode">TQDomElement::setAttributeNode</a>(). <p> <p>See also <a href="#createAttributeNS">createAttributeNS</a>(). -<h3 class=fn><a href="qdomattr.html">TQDomAttr</a> <a name="createAttributeNS"></a>TQDomDocument::createAttributeNS ( const <a href="qstring.html">TQString</a> & nsURI, const <a href="qstring.html">TQString</a> & qName ) +<h3 class=fn><a href="qdomattr.html">TQDomAttr</a> <a name="createAttributeNS"></a>TQDomDocument::createAttributeNS ( const <a href="ntqstring.html">TQString</a> & nsURI, const <a href="ntqstring.html">TQString</a> & qName ) </h3> Creates a new attribute with namespace support that can be inserted into an element. The name of the attribute is <em>qName</em> @@ -218,13 +218,13 @@ and the namespace URI is <em>nsURI</em>. This function also sets (depending on <em>qName</em>). <p> <p>See also <a href="#createAttribute">createAttribute</a>(). -<h3 class=fn><a href="qdomcdatasection.html">TQDomCDATASection</a> <a name="createCDATASection"></a>TQDomDocument::createCDATASection ( const <a href="qstring.html">TQString</a> & value ) +<h3 class=fn><a href="qdomcdatasection.html">TQDomCDATASection</a> <a name="createCDATASection"></a>TQDomDocument::createCDATASection ( const <a href="ntqstring.html">TQString</a> & value ) </h3> Creates a new CDATA section for the string <em>value</em> that can be inserted into the document, e.g. using <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(). <p> <p>See also <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(), <a href="qdomnode.html#insertBefore">TQDomNode::insertBefore</a>(), and <a href="qdomnode.html#insertAfter">TQDomNode::insertAfter</a>(). -<h3 class=fn><a href="qdomcomment.html">TQDomComment</a> <a name="createComment"></a>TQDomDocument::createComment ( const <a href="qstring.html">TQString</a> & value ) +<h3 class=fn><a href="qdomcomment.html">TQDomComment</a> <a name="createComment"></a>TQDomDocument::createComment ( const <a href="ntqstring.html">TQString</a> & value ) </h3> Creates a new comment for the string <em>value</em> that can be inserted into the document, e.g. using <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(). @@ -236,13 +236,13 @@ Creates a new document fragment, that can be used to hold parts of the document, e.g. when doing complex manipulations of the document tree. -<h3 class=fn><a href="qdomelement.html">TQDomElement</a> <a name="createElement"></a>TQDomDocument::createElement ( const <a href="qstring.html">TQString</a> & tagName ) +<h3 class=fn><a href="qdomelement.html">TQDomElement</a> <a name="createElement"></a>TQDomDocument::createElement ( const <a href="ntqstring.html">TQString</a> & tagName ) </h3> Creates a new element called <em>tagName</em> that can be inserted into the DOM tree, e.g. using <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(). <p> <p>See also <a href="#createElementNS">createElementNS</a>(), <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(), <a href="qdomnode.html#insertBefore">TQDomNode::insertBefore</a>(), and <a href="qdomnode.html#insertAfter">TQDomNode::insertAfter</a>(). -<h3 class=fn><a href="qdomelement.html">TQDomElement</a> <a name="createElementNS"></a>TQDomDocument::createElementNS ( const <a href="qstring.html">TQString</a> & nsURI, const <a href="qstring.html">TQString</a> & qName ) +<h3 class=fn><a href="qdomelement.html">TQDomElement</a> <a name="createElementNS"></a>TQDomDocument::createElementNS ( const <a href="ntqstring.html">TQString</a> & nsURI, const <a href="ntqstring.html">TQString</a> & qName ) </h3> Creates a new element with namespace support that can be inserted into the DOM tree. The name of the element is <em>qName</em> and the @@ -251,13 +251,13 @@ namespace URI is <em>nsURI</em>. This function also sets (depending on <em>qName</em>). <p> <p>See also <a href="#createElement">createElement</a>(). -<h3 class=fn><a href="qdomentityreference.html">TQDomEntityReference</a> <a name="createEntityReference"></a>TQDomDocument::createEntityReference ( const <a href="qstring.html">TQString</a> & name ) +<h3 class=fn><a href="qdomentityreference.html">TQDomEntityReference</a> <a name="createEntityReference"></a>TQDomDocument::createEntityReference ( const <a href="ntqstring.html">TQString</a> & name ) </h3> Creates a new entity reference called <em>name</em> that can be inserted into the document, e.g. using <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(). <p> <p>See also <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(), <a href="qdomnode.html#insertBefore">TQDomNode::insertBefore</a>(), and <a href="qdomnode.html#insertAfter">TQDomNode::insertAfter</a>(). -<h3 class=fn><a href="qdomprocessinginstruction.html">TQDomProcessingInstruction</a> <a name="createProcessingInstruction"></a>TQDomDocument::createProcessingInstruction ( const <a href="qstring.html">TQString</a> & target, const <a href="qstring.html">TQString</a> & data ) +<h3 class=fn><a href="qdomprocessinginstruction.html">TQDomProcessingInstruction</a> <a name="createProcessingInstruction"></a>TQDomDocument::createProcessingInstruction ( const <a href="ntqstring.html">TQString</a> & target, const <a href="ntqstring.html">TQString</a> & data ) </h3> Creates a new processing instruction that can be inserted into the document, e.g. using <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(). This function sets @@ -265,7 +265,7 @@ the target for the processing instruction to <em>target</em> and the data to <em>data</em>. <p> <p>See also <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(), <a href="qdomnode.html#insertBefore">TQDomNode::insertBefore</a>(), and <a href="qdomnode.html#insertAfter">TQDomNode::insertAfter</a>(). -<h3 class=fn><a href="qdomtext.html">TQDomText</a> <a name="createTextNode"></a>TQDomDocument::createTextNode ( const <a href="qstring.html">TQString</a> & value ) +<h3 class=fn><a href="qdomtext.html">TQDomText</a> <a name="createTextNode"></a>TQDomDocument::createTextNode ( const <a href="ntqstring.html">TQString</a> & value ) </h3> Creates a text node for the string <em>value</em> that can be inserted into the document tree, e.g. using <a href="qdomnode.html#appendChild">TQDomNode::appendChild</a>(). @@ -287,7 +287,7 @@ Returns the document type of this document. </h3> Returns the root element of the document. -<h3 class=fn><a href="qdomelement.html">TQDomElement</a> <a name="elementById"></a>TQDomDocument::elementById ( const <a href="qstring.html">TQString</a> & elementId ) +<h3 class=fn><a href="qdomelement.html">TQDomElement</a> <a name="elementById"></a>TQDomDocument::elementById ( const <a href="ntqstring.html">TQString</a> & elementId ) </h3> Returns the element whose ID is equal to <em>elementId</em>. If no element with the ID was found, this function returns a <a href="qdomnode.html#isNull">null element</a>. @@ -295,7 +295,7 @@ element with the ID was found, this function returns a <a href="qdomnode.html#is IDs, this function returns always a <a href="qdomnode.html#isNull">null element</a>. This may change in a future version. -<h3 class=fn><a href="qdomnodelist.html">TQDomNodeList</a> <a name="elementsByTagName"></a>TQDomDocument::elementsByTagName ( const <a href="qstring.html">TQString</a> & tagname ) const +<h3 class=fn><a href="qdomnodelist.html">TQDomNodeList</a> <a name="elementsByTagName"></a>TQDomDocument::elementsByTagName ( const <a href="ntqstring.html">TQString</a> & tagname ) const </h3> Returns a <a href="qdomnodelist.html">TQDomNodeList</a>, that contains all the elements in the document with the name <em>tagname</em>. The order of the node list is @@ -303,7 +303,7 @@ the order they are encountered in a preorder traversal of the element tree. <p> <p>See also <a href="#elementsByTagNameNS">elementsByTagNameNS</a>() and <a href="qdomelement.html#elementsByTagName">TQDomElement::elementsByTagName</a>(). -<h3 class=fn><a href="qdomnodelist.html">TQDomNodeList</a> <a name="elementsByTagNameNS"></a>TQDomDocument::elementsByTagNameNS ( const <a href="qstring.html">TQString</a> & nsURI, const <a href="qstring.html">TQString</a> & localName ) +<h3 class=fn><a href="qdomnodelist.html">TQDomNodeList</a> <a name="elementsByTagNameNS"></a>TQDomDocument::elementsByTagNameNS ( const <a href="ntqstring.html">TQString</a> & nsURI, const <a href="ntqstring.html">TQString</a> & localName ) </h3> Returns a <a href="qdomnodelist.html">TQDomNodeList</a> that contains all the elements in the document with the local name <em>localName</em> and a namespace URI of @@ -389,7 +389,7 @@ Assigns <em>x</em> to this DOM document. will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use <a href="qdomnode.html#cloneNode">cloneNode</a>(). -<h3 class=fn>bool <a name="setContent"></a>TQDomDocument::setContent ( const <a href="qbytearray.html">TQByteArray</a> & buffer, bool namespaceProcessing, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent"></a>TQDomDocument::setContent ( const <a href="qbytearray.html">TQByteArray</a> & buffer, bool namespaceProcessing, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This function parses the XML document from the byte array <em>buffer</em> and sets it as the content of the document. It tries to detect the encoding of the document as required by the XML @@ -408,29 +408,29 @@ returns a string for all elements and attributes. It returns an empty string if the element or attribute has no prefix. <p> If <em>namespaceProcessing</em> is FALSE, the functions TQDomNode::prefix(), <a href="qdomnode.html#localName">TQDomNode::localName</a>() and -<a href="qdomnode.html#namespaceURI">TQDomNode::namespaceURI</a>() return <a href="qstring.html#TQString-null">TQString::null</a>. -<p> <p>See also <a href="qdomnode.html#namespaceURI">TQDomNode::namespaceURI</a>(), <a href="qdomnode.html#localName">TQDomNode::localName</a>(), <a href="qdomnode.html#prefix">TQDomNode::prefix</a>(), <a href="qstring.html#isNull">TQString::isNull</a>(), and <a href="qstring.html#isEmpty">TQString::isEmpty</a>(). +<a href="qdomnode.html#namespaceURI">TQDomNode::namespaceURI</a>() return <a href="ntqstring.html#TQString-null">TQString::null</a>. +<p> <p>See also <a href="qdomnode.html#namespaceURI">TQDomNode::namespaceURI</a>(), <a href="qdomnode.html#localName">TQDomNode::localName</a>(), <a href="qdomnode.html#prefix">TQDomNode::prefix</a>(), <a href="ntqstring.html#isNull">TQString::isNull</a>(), and <a href="ntqstring.html#isEmpty">TQString::isEmpty</a>(). -<h3 class=fn>bool <a name="setContent-2"></a>TQDomDocument::setContent ( const <a href="qcstring.html">TQCString</a> & buffer, bool namespaceProcessing, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-2"></a>TQDomDocument::setContent ( const <a href="ntqcstring.html">TQCString</a> & buffer, bool namespaceProcessing, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the C string <em>buffer</em>. <p> <b>Warning:</b> This function does not try to detect the encoding: instead it assumes that the C string is UTF-8 encoded. -<h3 class=fn>bool <a name="setContent-3"></a>TQDomDocument::setContent ( const <a href="qstring.html">TQString</a> & text, bool namespaceProcessing, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-3"></a>TQDomDocument::setContent ( const <a href="ntqstring.html">TQString</a> & text, bool namespaceProcessing, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the string <em>text</em>. Since <em>text</em> is already a Unicode string, no encoding detection is done. -<h3 class=fn>bool <a name="setContent-4"></a>TQDomDocument::setContent ( <a href="qiodevice.html">TQIODevice</a> * dev, bool namespaceProcessing, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-4"></a>TQDomDocument::setContent ( <a href="ntqiodevice.html">TQIODevice</a> * dev, bool namespaceProcessing, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the IO device <em>dev</em>. -<h3 class=fn>bool <a name="setContent-5"></a>TQDomDocument::setContent ( const <a href="qcstring.html">TQCString</a> & buffer, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-5"></a>TQDomDocument::setContent ( const <a href="ntqcstring.html">TQCString</a> & buffer, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the C string <em>buffer</em>. @@ -438,13 +438,13 @@ This is an overloaded member function, provided for convenience. It behaves esse <p> <b>Warning:</b> This function does not try to detect the encoding: instead it assumes that the C string is UTF-8 encoded. -<h3 class=fn>bool <a name="setContent-6"></a>TQDomDocument::setContent ( const <a href="qbytearray.html">TQByteArray</a> & buffer, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-6"></a>TQDomDocument::setContent ( const <a href="qbytearray.html">TQByteArray</a> & buffer, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the byte array <em>buffer</em>. <p> No namespace processing is performed. -<h3 class=fn>bool <a name="setContent-7"></a>TQDomDocument::setContent ( const <a href="qstring.html">TQString</a> & text, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-7"></a>TQDomDocument::setContent ( const <a href="ntqstring.html">TQString</a> & text, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the string <em>text</em>. @@ -452,13 +452,13 @@ Since <em>text</em> is already a Unicode string, no encoding detection is performed. <p> No namespace processing is performed either. -<h3 class=fn>bool <a name="setContent-8"></a>TQDomDocument::setContent ( <a href="qiodevice.html">TQIODevice</a> * dev, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-8"></a>TQDomDocument::setContent ( <a href="ntqiodevice.html">TQIODevice</a> * dev, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the IO device <em>dev</em>. <p> No namespace processing is performed. -<h3 class=fn>bool <a name="setContent-9"></a>TQDomDocument::setContent ( <a href="qxmlinputsource.html">TQXmlInputSource</a> * source, <a href="qxmlreader.html">TQXmlReader</a> * reader, <a href="qstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) +<h3 class=fn>bool <a name="setContent-9"></a>TQDomDocument::setContent ( <a href="qxmlinputsource.html">TQXmlInputSource</a> * source, <a href="qxmlreader.html">TQXmlReader</a> * reader, <a href="ntqstring.html">TQString</a> * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function reads the XML document from the <a href="qxmlinputsource.html">TQXmlInputSource</a> <em>source</em> and @@ -468,24 +468,24 @@ use certain features for parsing you can use this function to set up the reader appropriate. <p> <p>See also <a href="qxmlsimplereader.html">TQXmlSimpleReader</a>. -<h3 class=fn><a href="qcstring.html">TQCString</a> <a name="toCString"></a>TQDomDocument::toCString () const +<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="toCString"></a>TQDomDocument::toCString () const </h3> Converts the parsed document back to its textual representation -and returns a <a href="qcstring.html">TQCString</a> for that is encoded in UTF-8. +and returns a <a href="ntqcstring.html">TQCString</a> for that is encoded in UTF-8. <p> <p>See also <a href="#toString">toString</a>(). -<h3 class=fn><a href="qcstring.html">TQCString</a> <a name="toCString-2"></a>TQDomDocument::toCString ( int indent ) const +<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="toCString-2"></a>TQDomDocument::toCString ( int indent ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function uses <em>indent</em> as the amount of space to indent subelements. -<h3 class=fn><a href="qstring.html">TQString</a> <a name="toString"></a>TQDomDocument::toString () const +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="toString"></a>TQDomDocument::toString () const </h3> Converts the parsed document back to its textual representation. <p> <p>See also <a href="#toCString">toCString</a>(). -<h3 class=fn><a href="qstring.html">TQString</a> <a name="toString-2"></a>TQDomDocument::toString ( int indent ) const +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="toString-2"></a>TQDomDocument::toString ( int indent ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This function uses <em>indent</em> as the amount of space to indent |