phpxd-commits Mailing List for phpXD (Page 3)
Status: Beta
Brought to you by:
growbal
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(4) |
Aug
|
Sep
(1) |
Oct
|
Nov
(14) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(49) |
Feb
(43) |
Mar
(15) |
Apr
|
May
|
Jun
(10) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
From: Thomas D. <th...@us...> - 2002-02-09 17:57:45
|
Update of /cvsroot/phpxd/phpXD/doc In directory usw-pr-cvs1:/tmp/cvs-serv23338/doc Added Files: Notation.html Removed Files: package-list Log Message: --- NEW FILE: Notation.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> phpXMLDOM: API Documentation - Class Notation </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="NodeList.html"><B>PREV CLASS</B></A> <A HREF="ProcessingInstruction.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Notation.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> Class Notation</H2> <PRE> <A HREF="Node.html">Node</A> | +--<B>Notation</B> </PRE> <HR> <DL> <DT>public class <B>Notation</B><DT>extends <A HREF="Node.html">Node</A></DL> <P> Class representing the DOM Notation interface. <P> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>private string</CODE></FONT></TD> <TD><CODE><B><A HREF="Notation.html#$publicId">$publicId</A></B></CODE> <BR> Die public identifier URL (URI) for this notation.<br> DOM-Level 1</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>private string</CODE></FONT></TD> <TD><CODE><B><A HREF="Notation.html#$systemId">$systemId</A></B></CODE> <BR> Die system identifier URL (URI) for this notation.<br> DOM-Level 1</TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_Node"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from class <A HREF="Node.html">Node</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="Notation.html#Notation()">Notation</A></B>()</CODE> <BR> Constructor of the class.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> unknown</CODE></FONT></TD> <TD><CODE><B><A HREF="Notation.html#getPublicId()">getPublicId</A></B>()</CODE> <BR> Returns the public identifier URL.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> unknown</CODE></FONT></TD> <TD><CODE><B><A HREF="Notation.html#getSystemId()">getSystemId</A></B>()</CODE> <BR> Returns the system identifier URL.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_Node"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class <A HREF="Node.html">Node</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="$publicId"><!-- --></A><H3> $publicId</H3> <PRE> private string <B>$publicId</B></PRE> <DL> <DD>Die public identifier URL (URI) for this notation.<br> DOM-Level 1</DL> <HR> <A NAME="$systemId"><!-- --></A><H3> $systemId</H3> <PRE> private string <B>$systemId</B></PRE> <DL> <DD>Die system identifier URL (URI) for this notation.<br> DOM-Level 1</DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="Notation()"><!-- --></A><H3> Notation</H3> <PRE> public <B>Notation</B>()</PRE> <DL> <DD>Constructor of the class.</DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="getPublicId()"><!-- --></A><H3> getPublicId</H3> <PRE> public unknown <B>getPublicId</B>()</PRE> <DL> <DD>Returns the public identifier URL.<DD><DL> <DT><B>Returns:</B><DD>string</DL> </DD> </DL> <HR> <A NAME="getSystemId()"><!-- --></A><H3> getSystemId</H3> <PRE> public unknown <B>getSystemId</B>()</PRE> <DL> <DD>Returns the system identifier URL.<DD><DL> <DT><B>Returns:</B><DD>string</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="NodeList.html"><B>PREV CLASS</B></A> <A HREF="ProcessingInstruction.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Notation.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> --- package-list DELETED --- |
Update of /cvsroot/phpxd/phpXD/doc In directory usw-pr-cvs1:/tmp/cvs-serv22887/doc Modified Files: Attr.html CDataSection.html CharacterData.html Comment.html DOMImplementation.html DOMParser.html Document.html DocumentFragment.html DocumentType.html Element.html Entity.html EntityReference.html NamedNodeMap.html Node.html NodeList.html ProcessingInstruction.html Text.html allclasses-frame.html deprecated-list.html help-doc.html index-all.html index.html overview-tree.html packages.html serialized-form.html Log Message: Index: Attr.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Attr.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Attr.html 9 Feb 2002 17:46:11 -0000 1.2 --- Attr.html 9 Feb 2002 17:56:13 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Attr </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Attr </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: CDataSection.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/CDataSection.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** CDataSection.html 9 Feb 2002 17:46:11 -0000 1.2 --- CDataSection.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class CDataSection </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class CDataSection </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: CharacterData.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/CharacterData.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** CharacterData.html 9 Feb 2002 17:46:11 -0000 1.2 --- CharacterData.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class CharacterData </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class CharacterData </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: Comment.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Comment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Comment.html 9 Feb 2002 17:46:11 -0000 1.2 --- Comment.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Comment </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Comment </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: DOMImplementation.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DOMImplementation.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** DOMImplementation.html 9 Feb 2002 17:46:11 -0000 1.2 --- DOMImplementation.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class DOMImplementation </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class DOMImplementation </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: DOMParser.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DOMParser.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DOMParser.html 9 Feb 2002 17:46:11 -0000 1.1 --- DOMParser.html 9 Feb 2002 17:56:15 -0000 1.2 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:59 CET 2002 --> <TITLE> ! : Class DOMParser </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:59 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class DOMParser </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: Document.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Document.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Document.html 9 Feb 2002 17:46:11 -0000 1.2 --- Document.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Document </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Document </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: DocumentFragment.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DocumentFragment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** DocumentFragment.html 9 Feb 2002 17:46:11 -0000 1.2 --- DocumentFragment.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class DocumentFragment </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class DocumentFragment </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: DocumentType.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DocumentType.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** DocumentType.html 9 Feb 2002 17:46:11 -0000 1.2 --- DocumentType.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class DocumentType </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class DocumentType </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: Element.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Element.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Element.html 9 Feb 2002 17:46:11 -0000 1.2 --- Element.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Element </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Element </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: Entity.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Entity.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Entity.html 9 Feb 2002 17:46:11 -0000 1.2 --- Entity.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Entity </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Entity </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: EntityReference.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/EntityReference.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** EntityReference.html 9 Feb 2002 17:46:11 -0000 1.2 --- EntityReference.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class EntityReference </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class EntityReference </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: NamedNodeMap.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/NamedNodeMap.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** NamedNodeMap.html 9 Feb 2002 17:46:11 -0000 1.2 --- NamedNodeMap.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class NamedNodeMap </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class NamedNodeMap </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: Node.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Node.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Node.html 9 Feb 2002 17:46:11 -0000 1.2 --- Node.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Node </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Node </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: NodeList.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/NodeList.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** NodeList.html 9 Feb 2002 17:46:11 -0000 1.2 --- NodeList.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class NodeList </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class NodeList </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: ProcessingInstruction.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/ProcessingInstruction.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ProcessingInstruction.html 9 Feb 2002 17:46:11 -0000 1.2 --- ProcessingInstruction.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class ProcessingInstruction </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class ProcessingInstruction </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: Text.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Text.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Text.html 9 Feb 2002 17:46:11 -0000 1.2 --- Text.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Text </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Text </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: allclasses-frame.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/allclasses-frame.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** allclasses-frame.html 9 Feb 2002 17:46:11 -0000 1.2 --- allclasses-frame.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! All Classes </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - All Classes </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: deprecated-list.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/deprecated-list.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** deprecated-list.html 9 Feb 2002 17:46:11 -0000 1.2 --- deprecated-list.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Deprecated List </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Deprecated List </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: help-doc.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/help-doc.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** help-doc.html 9 Feb 2002 17:46:11 -0000 1.2 --- help-doc.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : API Help </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - API Help </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: index-all.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/index-all.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** index-all.html 9 Feb 2002 17:46:11 -0000 1.2 --- index-all.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Index </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Index </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: index.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/index.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** index.html 9 Feb 2002 17:46:11 -0000 1.2 --- index.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002--> <TITLE> ! Generated Documentation (Untitled) </TITLE> </HEAD> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002--> <TITLE> ! phpXMLDOM: API Documentation </TITLE> </HEAD> Index: overview-tree.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/overview-tree.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** overview-tree.html 9 Feb 2002 17:46:11 -0000 1.2 --- overview-tree.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! : Class Hierarchy </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Class Hierarchy </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> Index: packages.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/packages.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** packages.html 9 Feb 2002 17:46:11 -0000 1.2 --- packages.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> - </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,8 ---- Index: serialized-form.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/serialized-form.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** serialized-form.html 9 Feb 2002 17:46:11 -0000 1.2 --- serialized-form.html 9 Feb 2002 17:56:15 -0000 1.3 *************** *** 5,9 **** <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! Serialized Form </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> --- 5,9 ---- <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> ! phpXMLDOM: API Documentation - Serialized Form </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> |
Update of /cvsroot/phpxd/phpXD/doc In directory usw-pr-cvs1:/tmp/cvs-serv20436/doc Modified Files: Attr.html CDataSection.html CharacterData.html Comment.html DOMImplementation.html Document.html DocumentFragment.html DocumentType.html Element.html Entity.html EntityReference.html NamedNodeMap.html Node.html NodeList.html ProcessingInstruction.html Text.html allclasses-frame.html deprecated-list.html help-doc.html index-all.html index.html overview-tree.html packages.html serialized-form.html Added Files: DOMParser.html Removed Files: phpXD.html Log Message: Documentation updated. --- NEW FILE: DOMParser.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Sat Feb 09 18:40:59 CET 2002 --> <TITLE> : Class DOMParser </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="DOMImplementation.html"><B>PREV CLASS</B></A> <A HREF="Element.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="DOMParser.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> Class DOMParser</H2> <PRE> <B>DOMParser</B> </PRE> <HR> <DL> <DT>public class <B>DOMParser</B></DL> <P> Parse a document. <P> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="DOMParser.html#DOMParser()">DOMParser</A></B>()</CODE> <BR> The Constructor of the class.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="Document.html">Document</A></CODE></FONT></TD> <TD><CODE><B><A HREF="DOMParser.html#parse(var, var)">parse</A></B>(var $str, var $parseDTD)</CODE> <BR> Loads XML string specified by $str and creates the DOM tree.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="Document.html">Document</A></CODE></FONT></TD> <TD><CODE><B><A HREF="DOMParser.html#parseFile(var, var)">parseFile</A></B>(var $file, var $parseDTD)</CODE> <BR> Loads the XML file specified by $file and creates the DOM tree.</TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="DOMParser()"><!-- --></A><H3> DOMParser</H3> <PRE> public <B>DOMParser</B>()</PRE> <DL> <DD>The Constructor of the class.</DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="parseFile(var, var)"><!-- --></A><H3> parseFile</H3> <PRE> public <A HREF="Document.html">Document</A> <B>parseFile</B>(var $file, var $parseDTD)</PRE> <DL> <DD>Loads the XML file specified by $file and creates the DOM tree.<DD><DL> <DT><B>Parameters:</B><DD><CODE>$file</CODE> - <code>string</code><DD><CODE>$parseDTD</CODE> - <code>boolean</code><DD><CODE>$parseDTD</CODE> - <b>Default Value</b>: false</DL> </DD> </DL> <HR> <A NAME="parse(var, var)"><!-- --></A><H3> parse</H3> <PRE> public <A HREF="Document.html">Document</A> <B>parse</B>(var $str, var $parseDTD)</PRE> <DL> <DD>Loads XML string specified by $str and creates the DOM tree.<DD><DL> <DT><B>Parameters:</B><DD><CODE>$str</CODE> - <code>string</code><DD><CODE>$parseDTD</CODE> - <code>boolean</code><DD><CODE>$parseDTD</CODE> - <b>Default Value</b>: false</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="DOMImplementation.html"><B>PREV CLASS</B></A> <A HREF="Element.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="DOMParser.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML> Index: Attr.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Attr.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Attr.html 27 Nov 2001 21:03:43 -0000 1.1 --- Attr.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class Attr --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class Attr *************** *** 65,72 **** Class representing the DOM Attr interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 65,68 ---- *************** *** 128,132 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 124,128 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 250,254 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 246,250 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> Index: CDataSection.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/CDataSection.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** CDataSection.html 27 Nov 2001 21:03:43 -0000 1.1 --- CDataSection.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class CDataSection --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class CDataSection *************** *** 69,76 **** Class representing the DOM CDataSection interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 69,72 ---- *************** *** 96,100 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 92,96 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 142,146 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 138,142 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> Index: CharacterData.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/CharacterData.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** CharacterData.html 27 Nov 2001 21:03:43 -0000 1.1 --- CharacterData.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class CharacterData --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class CharacterData *************** *** 68,75 **** Class representing the DOM CharacterData interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 68,71 ---- *************** *** 111,115 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 107,111 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 227,231 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 223,227 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> Index: Comment.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Comment.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Comment.html 27 Nov 2001 21:03:43 -0000 1.1 --- Comment.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class Comment --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class Comment *************** *** 67,74 **** Class representing the DOM Comment interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 67,70 ---- *************** *** 94,98 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 90,94 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 131,135 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 127,131 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> Index: DOMImplementation.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DOMImplementation.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DOMImplementation.html 27 Nov 2001 21:03:43 -0000 1.1 --- DOMImplementation.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class DOMImplementation --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class DOMImplementation *************** *** 35,39 **** <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="DocumentType.html"><B>PREV CLASS</B></A> ! <A HREF="Element.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> --- 35,39 ---- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="DocumentType.html"><B>PREV CLASS</B></A> ! <A HREF="DOMParser.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> *************** *** 63,70 **** Class representing the DOM DOMImplementation interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 63,66 ---- *************** *** 177,181 **** package.<br> DOM-Level 1<DD><DL> ! <DT><B>Parameters:</B><DD><CODE>$feature</CODE> - <code>string</code><DD><CODE>$version</CODE> - <code>string</code></DL> </DD> </DL> --- 173,177 ---- package.<br> DOM-Level 1<DD><DL> ! <DT><B>Parameters:</B><DD><CODE>$feature</CODE> - <code>string</code><DD><CODE>$version</CODE> - <code>string</code><DD><CODE>$version</CODE> - <b>Default Value</b>: "1.0"</DL> </DD> </DL> *************** *** 236,240 **** <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="DocumentType.html"><B>PREV CLASS</B></A> ! <A HREF="Element.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> --- 232,236 ---- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="DocumentType.html"><B>PREV CLASS</B></A> ! <A HREF="DOMParser.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> Index: Document.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Document.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Document.html 27 Nov 2001 21:03:43 -0000 1.1 --- Document.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class Document --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class Document *************** *** 65,72 **** Class representing the DOM Document interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 65,68 ---- *************** *** 119,123 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 115,119 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 270,273 **** --- 266,280 ---- <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> + <CODE>private void</CODE></FONT></TD> + <TD><CODE><B><A HREF="Document.html#getElementByIdHelp(var, var, var)">getElementByIdHelp</A></B>(var $id, + var $dtd, + var $parent)</CODE> + + <BR> + Runs recursively through the DOM-Tree and returns the element with + attribute id.</TD> + </TR> + <TR BGCOLOR="white" CLASS="TableRowColor"> + <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="NodeList.html">NodeList</A></CODE></FONT></TD> <TD><CODE><B><A HREF="Document.html#getElementsByTagName(var)">getElementsByTagName</A></B>(var $tagName)</CODE> *************** *** 338,342 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 345,349 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> *************** *** 605,608 **** --- 612,629 ---- DOM-Level 2<DD><DL> <DT><B>Parameters:</B><DD><CODE>$importedNode</CODE> - <a href="Node.html">Node</a><DD><CODE>$deep</CODE> - <code>boolean</code><DD><CODE>$importedNode</CODE> - is passed by reference</DL> + </DD> + </DL> + <HR> + + <A NAME="getElementByIdHelp(var, var, var)"><!-- --></A><H3> + getElementByIdHelp</H3> + <PRE> + private void <B>getElementByIdHelp</B>(var $id, + var $dtd, + var $parent)</PRE> + <DL> + <DD>Runs recursively through the DOM-Tree and returns the element with + attribute id.<DD><DL> + <DT><B>Parameters:</B><DD><CODE>$tagName</CODE> - <code>string</code><DD><CODE>$id</CODE> - <code>boolean</code><DD><CODE>$parent</CODE> - <a href="Node.html">Node</a><DD><CODE>$parent</CODE> - is passed by reference</DL> </DD> </DL> Index: DocumentFragment.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DocumentFragment.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DocumentFragment.html 27 Nov 2001 21:03:43 -0000 1.1 --- DocumentFragment.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class DocumentFragment --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class DocumentFragment *************** *** 65,72 **** Class representing the DOM DocumentFragment interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 65,68 ---- *************** *** 83,87 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 79,83 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 111,115 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 107,111 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> Index: DocumentType.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/DocumentType.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DocumentType.html 27 Nov 2001 21:03:43 -0000 1.1 --- DocumentType.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class DocumentType --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class DocumentType *************** *** 65,72 **** Class representing the DOM DocumentType interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 65,68 ---- *************** *** 85,94 **** <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> ! <CODE>private string</CODE></FONT></TD> <TD><CODE><B><A HREF="DocumentType.html#$entities">$entities</A></B></CODE> <BR> A list of all generall entities declared in the DTD.<br> ! DOM-Level 1-- NYI</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> --- 81,98 ---- <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> ! <CODE>private <A HREF="NamedNodeMap.html">NamedNodeMap</A></CODE></FONT></TD> ! <TD><CODE><B><A HREF="DocumentType.html#$elements">$elements</A></B></CODE> ! ! <BR> ! A list off all defined elements and attributes. </TD> ! </TR> ! <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> ! <CODE>private <A HREF="NamedNodeMap.html">NamedNodeMap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="DocumentType.html#$entities">$entities</A></B></CODE> <BR> A list of all generall entities declared in the DTD.<br> ! DOM-Level 1</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> *************** *** 112,121 **** <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> ! <CODE>private string</CODE></FONT></TD> <TD><CODE><B><A HREF="DocumentType.html#$notations">$notations</A></B></CODE> <BR> Contains a list of XML notation declarations.<br> ! DOM-Level 1 -- NYI</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> --- 116,125 ---- <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> ! <CODE>private <A HREF="NamedNodeMap.html">NamedNodeMap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="DocumentType.html#$notations">$notations</A></B></CODE> <BR> Contains a list of XML notation declarations.<br> ! DOM-Level 1</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> *************** *** 144,148 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A></CODE></TD> </TR> </TABLE> --- 148,152 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstChild</A>, <A HREF="Node.html#$lastChild">$lastChild</A>, <A HREF="Node.html#$localName">$localName</A>, <A HREF="Node.html#$namespaceURI">$namespaceURI</A>, <A HREF="Node.html#$nextSibling">$nextSibling</A>, <A HREF="Node.html#$nodeID">$nodeID</A>, <A HREF="Node.html#$nodeName">$nodeName</A>, <A HREF="Node.html#$nodeType">$nodeType</A>, <A HREF="Node.html#$nodeValue">$nodeValue</A>, <A HREF="Node.html#$ownerDocument">$ownerDocument</A>, <A HREF="Node.html#$parentNode">$parentNode</A>, <A HREF="Node.html#$prefix">$prefix</A>, <A HREF="Node.html#$previousSibling">$previousSibling</A>, <A HREF="Node.html#$readonly">$readonly</A></CODE></TD> </TR> </TABLE> *************** *** 180,184 **** Returns a NamedNodeMap containing all general entities declared in the DTD.<br> ! DOM-Level 1 -- NYI</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> --- 184,188 ---- Returns a NamedNodeMap containing all general entities declared in the DTD.<br> ! DOM-Level 1</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> *************** *** 208,212 **** Returns a NamedNodeMap containing all notations declared in the DTD.<br> ! DOM-Level 1 -- NYI</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> --- 212,216 ---- Returns a NamedNodeMap containing all notations declared in the DTD.<br> ! DOM-Level 1</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> *************** *** 235,239 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> --- 239,243 ---- </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#appendChild(var)">appendChild</A>, <A HREF="Node.html#checkDocument(var)">checkDocument</A>, <A HREF="Node.html#checkHierarchy(var)">checkHierarchy</A>, <A HREF="Node.html#cloneNode(var)">cloneNode</A>, <A HREF="Node.html#cloneNode(var, var)">cloneNode</A>, <A HREF="Node.html#getAttributes()">getAttributes</A>, <A HREF="Node.html#getChildNodes()">getChildNodes</A>, <A HREF="Node.html#getFirstChild()">getFirstChild</A>, <A HREF="Node.html#getLastChild()">getLastChild</A>, <A HREF="Node.html#getLocalName()">getLocalName</A>, <A HREF="Node.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="Node.html#getNextSibling()">getNextSibling</A>, <A HREF="Node.html#getNodeName()">getNodeName</A>, <A HREF="Node.html#getNodeType()">getNodeType</A>, <A HREF="Node.html#getNodeValue()">getNodeValue</A>, <A HREF="Node.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="Node.html#getParentNode()">getParentNode</A>, <A HREF="Node.html#getPrefix()">getPrefix</A>, <A HREF="Node.html#getPreviousSibling()">getPreviousSibling</A>, <A HREF="Node.html#hasAttributes()">hasAttributes</A>, <A HREF="Node.html#hasChildNodes()">hasChildNodes</A>, <A HREF="Node.html#insertBefore(var, var)">insertBefore</A>, <A HREF="Node.html#isSupported(var, var)">isSupported</A>, <A HREF="Node.html#normalize()">normalize</A>, <A HREF="Node.html#removeChild(var)">removeChild</A>, <A HREF="Node.html#replaceChild(var, var)">replaceChild</A>, <A HREF="Node.html#setNodeValue(var)">setNodeValue</A>, <A HREF="Node.html#setPrefix(var)">setPrefix</A></CODE></TD> </TR> </TABLE> *************** *** 251,261 **** </TABLE> <A NAME="$entities"><!-- --></A><H3> $entities</H3> <PRE> ! private string <B>$entities</B></PRE> <DL> <DD>A list of all generall entities declared in the DTD.<br> ! DOM-Level 1-- NYI</DL> <HR> --- 255,274 ---- </TABLE> + <A NAME="$elements"><!-- --></A><H3> + $elements</H3> + <PRE> + private <A HREF="NamedNodeMap.html">NamedNodeMap</A> <B>$elements</B></PRE> + <DL> + <DD>A list off all defined elements and attributes. This is not DOM + standard!</DL> + <HR> + <A NAME="$entities"><!-- --></A><H3> $entities</H3> <PRE> ! private <A HREF="NamedNodeMap.html">NamedNodeMap</A> <B>$entities</B></PRE> <DL> <DD>A list of all generall entities declared in the DTD.<br> ! DOM-Level 1</DL> <HR> *************** *** 272,279 **** $notations</H3> <PRE> ! private string <B>$notations</B></PRE> <DL> <DD>Contains a list of XML notation declarations.<br> ! DOM-Level 1 -- NYI</DL> <HR> --- 285,292 ---- $notations</H3> <PRE> ! private <A HREF="NamedNodeMap.html">NamedNodeMap</A> <B>$notations</B></PRE> <DL> <DD>Contains a list of XML notation declarations.<br> ! DOM-Level 1</DL> <HR> *************** *** 338,342 **** <DD>Returns a NamedNodeMap containing all general entities declared in the DTD.<br> ! DOM-Level 1 -- NYI</DL> <HR> --- 351,355 ---- <DD>Returns a NamedNodeMap containing all general entities declared in the DTD.<br> ! DOM-Level 1</DL> <HR> *************** *** 366,370 **** <DD>Returns a NamedNodeMap containing all notations declared in the DTD.<br> ! DOM-Level 1 -- NYI</DL> <HR> --- 379,383 ---- <DD>Returns a NamedNodeMap containing all notations declared in the DTD.<br> ! DOM-Level 1</DL> <HR> Index: Element.html =================================================================== RCS file: /cvsroot/phpxd/phpXD/doc/Element.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Element.html 27 Nov 2001 21:03:43 -0000 1.1 --- Element.html 9 Feb 2002 17:46:11 -0000 1.2 *************** *** 3,7 **** <HTML> <HEAD> ! <!-- Generated by javadoc on Tue Nov 27 21:59:22 CET 2001 --> <TITLE> : Class Element --- 3,7 ---- <HTML> <HEAD> ! <!-- Generated by javadoc on Sat Feb 09 18:40:34 CET 2002 --> <TITLE> : Class Element *************** *** 34,38 **** <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> ! <A HREF="DOMImplementation.html"><B>PREV CLASS</B></A> <A HREF="Entity.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> --- 34,38 ---- <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> ! <A HREF="DOMParser.html"><B>PREV CLASS</B></A> <A HREF="Entity.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> *************** *** 65,72 **** Class representing the DOM Element interface. <P> - <DL> - <DT><B>Version: </B><DD>$Revision$</DD> - <DT><B>Author: </B><DD>Thomas Dohmke <th...@do...></DD> - </DL> <HR> --- 65,68 ---- *************** *** 99,103 **** </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> ! <TD><CODE><A HREF="Node.html#$attributes">$attributes</A>, <A HREF="Node.html#$childNodes">$childNodes</A>, <A HREF="Node.html#$firstChild">$firstCh... [truncated message content] |
From: Thomas D. <th...@us...> - 2002-02-09 17:46:14
|
Update of /cvsroot/phpxd/phpXD In directory usw-pr-cvs1:/tmp/cvs-serv20436 Modified Files: phpXD.php Log Message: Documentation updated. Index: phpXD.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/phpXD.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** phpXD.php 6 Feb 2002 22:58:41 -0000 1.26 --- phpXD.php 9 Feb 2002 17:46:11 -0000 1.27 *************** *** 8,12 **** // Set the phpXD install path. ! $path = "."; require($path."include/dom.php"); --- 8,12 ---- // Set the phpXD install path. ! $path = "f:/www/phpXD/"; require($path."include/dom.php"); |
From: Thomas D. <th...@us...> - 2002-02-08 17:50:09
|
Update of /cvsroot/phpxd/phpXD/include/parser In directory usw-pr-cvs1:/tmp/cvs-serv23259/include/parser Modified Files: DOMParser.php Log Message: Fixed little bug in DOMParser::handleStartElement, if no default value for an attribute exists Index: DOMParser.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/parser/DOMParser.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** DOMParser.php 6 Feb 2002 23:10:48 -0000 1.5 --- DOMParser.php 8 Feb 2002 17:50:05 -0000 1.6 *************** *** 323,327 **** } else { ! if ($attribute->value == $dtdAttribute->defaultValue) { $attribute->specified = false; } --- 323,328 ---- } else { ! if ((isset($dtdAttribute->defaultValue)) && ! ($attribute->value == $dtdAttribute->defaultValue)) { $attribute->specified = false; } |
From: Thomas D. <th...@us...> - 2002-02-08 17:48:16
|
Update of /cvsroot/phpxd/phpXD/include/dom In directory usw-pr-cvs1:/tmp/cvs-serv22902/include/dom Modified Files: Document.php Element.php Log Message: Added getElementById in interface Document. Index: Document.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Document.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** Document.php 6 Feb 2002 23:07:51 -0000 1.3 --- Document.php 8 Feb 2002 17:48:12 -0000 1.4 *************** *** 311,316 **** */ function &getElementById($elementID) { ! // This could not be implemented, as long as the DTD is not parsed. ! return NOT_SUPPORTED_ERR; } --- 311,330 ---- */ function &getElementById($elementID) { ! $element = null; ! if (isset($this->doctype) && ! isset($this->doctype->elements)) { ! $element = $this->getElementByIdHelp($elementID, true, ! $this->documentElement); ! } ! else { ! $element = $this->getElementByIdHelp($elementID, false, ! $this->documentElement); ! } ! if ($element == null) { ! return NOT_FOUND_ERR; ! } ! else { ! return $element; ! } } *************** *** 366,369 **** --- 380,431 ---- } + /** + * Runs recursively through the DOM-Tree and returns the element with + * attribute id. + * + * @private + * @param $tagName <code>string</code> + * @param $id <code>boolean</code> + * @param $parent <a href="Node.html">Node</a> + * @returns void + */ + function &getElementByIdHelp($id, $dtd, &$parent) { + $element = null; + if ($parent->nodeType == ELEMENT_NODE) { + if (!$dtd) { + $attr = $parent->getAttribute("id"); + if ($attr == $id) { + return $parent; + } + } + else { + $dtdElement = + $this->doctype->elements->getNamedItem($parent->nodeName); + if (isset($dtdElement) && + isset($dtdElement->attributes)) { + for ($i = 0; $i < $dtdElement->attributes->length; ++$i) { + $dtdAttribute = $dtdElement->attributes->item($i); + if ($dtdAttribute->type == "ID") { + $attr = $parent->getAttribute($dtdAttribute->nodeName); + if ($attr == $id) { + return $parent; + } + } + } + } + } + + if ($parent->hasChildNodes()) { + $element = $this->getElementByIdHelp($id, $dtd, + $parent->firstChild); + } + } + + if ((isset($parent->nextSibling)) && ($element != null)) { + return $this->getElementByIdHelp($id, $parent->nextSibling, $result); + } + return $element; + } + /** * Runs recursively through the DOM-Tree and returns a NodeList with all Index: Element.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Element.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Element.php 6 Feb 2002 23:07:51 -0000 1.2 --- Element.php 8 Feb 2002 17:48:12 -0000 1.3 *************** *** 56,60 **** function getAttribute($name) { $attr =& $this->getAttributeNode($name); ! if ($attr != NOT_FOUND_ERROR) { return $attr->getValue(); } --- 56,60 ---- function getAttribute($name) { $attr =& $this->getAttributeNode($name); ! if ($attr != NOT_FOUND_ERR) { return $attr->getValue(); } |
From: Thomas D. <th...@us...> - 2002-02-07 08:43:36
|
Update of /cvsroot/phpxd/phpXD.www/stylesheets In directory usw-pr-cvs1:/tmp/cvs-serv19250/stylesheets Modified Files: screen.css Log Message: Index: screen.css =================================================================== RCS file: /cvsroot/phpxd/phpXD.www/stylesheets/screen.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** screen.css 26 Jan 2002 17:10:45 -0000 1.1 --- screen.css 7 Feb 2002 08:43:32 -0000 1.2 *************** *** 117,120 **** --- 117,126 ---- } + p.bottombar img + { + background: #ffffff; + margin: 0px; + padding: 0px; + } .dokument |
From: Thomas D. <th...@us...> - 2002-02-07 08:43:36
|
Update of /cvsroot/phpxd/phpXD.www/templates In directory usw-pr-cvs1:/tmp/cvs-serv19250/templates Modified Files: template.html Log Message: Index: template.html =================================================================== RCS file: /cvsroot/phpxd/phpXD.www/templates/template.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** template.html 2 Feb 2002 22:25:31 -0000 1.3 --- template.html 7 Feb 2002 08:43:32 -0000 1.4 *************** *** 35,38 **** --- 35,41 ---- Page created in $PROCESSING_TIME$ s. </p> + <p class="bottombar"> + <a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=29609" width="88" height="31" alt="SourceForge" /></a> + </p> </div> </body> |
From: Thomas D. <th...@us...> - 2002-02-07 08:43:36
|
Update of /cvsroot/phpxd/phpXD.www/data/en In directory usw-pr-cvs1:/tmp/cvs-serv19250/data/en Modified Files: index.xml Log Message: Index: index.xml =================================================================== RCS file: /cvsroot/phpxd/phpXD.www/data/en/index.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** index.xml 28 Jan 2002 19:41:53 -0000 1.3 --- index.xml 7 Feb 2002 08:43:31 -0000 1.4 *************** *** 40,46 **** Sourceforge</a>. </p> - <a href="http://sourceforge.net"><img - src="http://sourceforge.net/sflogo.php?group_id=29609" - width="88" height="31" alt="SourceForge" /></a> </content> </page> --- 40,43 ---- |
From: Thomas D. <th...@us...> - 2002-02-06 23:23:25
|
Update of /cvsroot/phpxd/phpXD/include In directory usw-pr-cvs1:/tmp/cvs-serv4788/include Modified Files: dom.php Log Message: Index: dom.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** dom.php 2002/01/26 13:20:00 1.1 --- dom.php 2002/02/06 23:23:22 1.2 *************** *** 21,24 **** --- 21,25 ---- require($path."include/dom/NamedNodeMap.php"); require($path."include/dom/NodeList.php"); + require($path."include/dom/Notation.php"); require($path."include/dom/ProcessingInstruction.php"); require($path."include/dom/Text.php"); |
From: Thomas D. <th...@us...> - 2002-02-06 23:12:34
|
Update of /cvsroot/phpxd/phpXD In directory usw-pr-cvs1:/tmp/cvs-serv2094 Modified Files: DEVELOPMENT Log Message: Index: DEVELOPMENT =================================================================== RCS file: /cvsroot/phpxd/phpXD/DEVELOPMENT,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** DEVELOPMENT 2002/02/06 23:11:42 1.6 --- DEVELOPMENT 2002/02/06 23:12:32 1.7 *************** *** 25,29 **** Node yes yes NodeList yes na ! Notation yes na ProcessingInstruction yes na Text yes na --- 25,29 ---- Node yes yes NodeList yes na ! Notation yes na ProcessingInstruction yes na Text yes na |
From: Thomas D. <th...@us...> - 2002-02-06 23:11:44
|
Update of /cvsroot/phpxd/phpXD In directory usw-pr-cvs1:/tmp/cvs-serv1831 Modified Files: DEVELOPMENT Log Message: Index: DEVELOPMENT =================================================================== RCS file: /cvsroot/phpxd/phpXD/DEVELOPMENT,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** DEVELOPMENT 2001/06/28 22:28:13 1.5 --- DEVELOPMENT 2002/02/06 23:11:42 1.6 *************** *** 8,12 **** DEVELOPMENT ! DOM interface DOM-LEVEL 1 DOM-LEVEL 2 Attr yes yes --- 8,12 ---- DEVELOPMENT ! DOM core interface DOM-LEVEL 1 DOM-LEVEL 2 Attr yes yes *************** *** 14,33 **** CharaceterData yes na Comment yes na ! Document yes ** DocumentFragment yes na ! DocumentType ** yes DOMException yes yes DOMImplementation yes yes Element yes yes ! Entity * na ! EntityReference * na NamedNodeMap yes yes Node yes yes NodeList yes na ProcessingInstruction yes na Text yes na ! With "*" marked interfaces are not implemented yet. ! With "**" marked interfaces are partly implemented, but some ! attributes/functions may miss because of the lack of parsing DTDs. ! With "na" marked interfaces haven't new DOM Level 2 properties/methods. \ No newline at end of file --- 14,31 ---- CharaceterData yes na Comment yes na ! Document yes yes DocumentFragment yes na ! DocumentType yes yes DOMException yes yes DOMImplementation yes yes Element yes yes ! Entity yes na ! EntityReference yes na NamedNodeMap yes yes Node yes yes NodeList yes na + Notation yes na ProcessingInstruction yes na Text yes na ! With "na" marked interfaces haven't new DOM Level 2 properties/methods. |
From: Thomas D. <th...@us...> - 2002-02-06 23:10:50
|
Update of /cvsroot/phpxd/phpXD/include/parser In directory usw-pr-cvs1:/tmp/cvs-serv1109/include/parser Modified Files: DOMParser.php DTDParser.php Log Message: Added support for DTDs. DOMParser uses DTDParser to parse internal and external DTDs to make DOM interfaces Entity, EntityReference and Notation work. Index: DOMParser.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/parser/DOMParser.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** DOMParser.php 2002/01/29 20:57:01 1.4 --- DOMParser.php 2002/02/06 23:10:48 1.5 *************** *** 8,17 **** /** ! * Parse a document. ! * ! * @package DOMParser ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DOMParser { /** --- 8,17 ---- /** ! * Parse a document. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DOMParser { /** *************** *** 58,74 **** /** ! * The DTD is parsed. * * @private ! * @type string */ var $parseDTD = false; ! var $parseInternalDTD = false; ! /** ! * ****TODO**** */ var $DTDParser = null; var $DTDTokens; var $DTDString = ""; --- 58,106 ---- /** ! * If true, the DTD will be parsed. * * @private ! * @type boolean */ var $parseDTD = false; ! /** ! * Flag for handleDefault, that tokens are inside the dtd. ! * ! * @private ! * @type boolean */ + var $DTDDecl = false; + + /** + * Flag for handleDefault, that a internal dtd is parsed. + * + * @private + * @type boolean + */ + var $DTDInternal = false; + + /** + * Reference to a DTDParser. + * + * @private + * @type DTDParser + */ var $DTDParser = null; + + /** + * An array with all tokens from dtd. + * + * @private + * @type array + */ var $DTDTokens; + + /** + * Same as $DTDTokens but as flat string. + * + * @private + * @type string + */ var $DTDString = ""; *************** *** 89,100 **** * @public * @param $file <code>string</code> ! * @returns phpXD */ ! function parseFile($file) { ! if (file_exists($file)) { $content = implode("", file($file)); if (!empty($content)) { ! return $this->parse($content); } } --- 121,133 ---- * @public * @param $file <code>string</code> ! * @param $parseDTD <code>boolean</code> ! * @returns Document */ ! function &parseFile($file, $parseDTD = false) { ! if ($this->file_exists($file)) { $content = implode("", file($file)); if (!empty($content)) { ! return $this->parse($content, $parseDTD); } } *************** *** 109,118 **** * @public * @param $str <code>string</code> ! * @returns phpXD */ ! function parse($str) { if (!empty($str)) { $this->document = new Document(); ! $this->DTDParser = new DTDParser(); $parser = xml_parser_create(); --- 142,160 ---- * @public * @param $str <code>string</code> ! * @param $parseDTD <code>boolean</code> ! * @returns Document */ ! function &parse($str, $parseDTD = false) { if (!empty($str)) { + // Just a hack, cause it seems that expat doesn't support IGNORE or + // INCLUDE. + $str = preg_replace('=<!\[IGNORE\[.*\]\]>=sU', '', $str); + $str = preg_replace('=<!\[INCLUDE\[(.*)\]\]>=sU', '\\1', $str); + $this->document = new Document(); ! if ($parseDTD) { ! $this->DTDParser = new DTDParser(); ! $this->parseDTD = true; ! } $parser = xml_parser_create(); *************** *** 128,134 **** "handleProcessingInstruction"); xml_set_default_handler($parser, "handleDefault"); - xml_set_external_entity_ref_handler($parser, "handleExternalEntityRef"); ! if (!xml_parse($parser, $str, true)) { $this->displayError("XML error in line %d: %s", xml_get_current_line_number($parser), --- 170,175 ---- "handleProcessingInstruction"); xml_set_default_handler($parser, "handleDefault"); ! if (!xml_parse($parser, $str)) { $this->displayError("XML error in line %d: %s", xml_get_current_line_number($parser), *************** *** 137,140 **** --- 178,182 ---- xml_parser_free($parser); + $this->document->normalize(); return $this->document; } *************** *** 145,148 **** --- 187,223 ---- /** + * Internal method to load a file of a parsed external entity. + * + * @private + * @param $file <code>string</code> + * @returns Document + */ + function &parseExternalEntity($file) { + if ($this->file_exists($file)) { + $content = implode("", file($file)); + + if (!empty($content)) { + $content = preg_replace('=<\?xml.*\?>\n=sU', '', $content); + $content = preg_replace('=<\?xml.*\?>=sU', '', $content); + return $this->parseEntity($content); + } + } + else { + $this->displayError("File %s could not be found or read.", $file); + } + } + + /** + * Internal method to parse an entity body. + * + * @private + * @param $str <code>string</code> + * @returns Document + */ + function &parseEntity($str) { + return $this->parse("<entity>".$str."</entity>"); + } + + /** * The Element Start Handler for Expat. * *************** *** 174,178 **** $newChild =& $this->document->createElementNS($namespace, $name); ! if ($newChild == NAME_SPACE_ERR) { $this->displayError("XML error: namespace not valid in line %d.", xml_get_current_line_number($parser)); --- 249,253 ---- $newChild =& $this->document->createElementNS($namespace, $name); ! if ($newChild == NAMESPACE_ERR) { $this->displayError("XML error: namespace not valid in line %d.", xml_get_current_line_number($parser)); *************** *** 185,188 **** --- 260,264 ---- if (!isset($this->document->documentElement)) { $this->document->documentElement =& $newChild; + $this->document->appendChild($newChild); $this->currentNode =& $this->document->documentElement; } *************** *** 196,200 **** if (!(strpos($name, ":") === false)) { $prefix = substr($name, 0, strpos($name, ":")); ! $localName = substr($name, strpos($this->nodeName, ":")+1); if ($prefix == "xmlns") { $this->namespaces[$localName] = $value; --- 272,276 ---- if (!(strpos($name, ":") === false)) { $prefix = substr($name, 0, strpos($name, ":")); ! $localName = substr($name, strpos($name, ":")+1); if ($prefix == "xmlns") { $this->namespaces[$localName] = $value; *************** *** 221,238 **** $result = $this->currentNode->setAttributeNS($namespace, $name, $value); ! if ($result == NAME_SPACE_ERR) { $this->displayError("XML error: namespace not valid in line %d.", xml_get_current_line_number($parser)); } - - $attr =& $this->currentNode->getAttributeNode($name); - $attr->specified = true; } else { $this->currentNode->setAttribute($name, $value); ! $attr =& $this->currentNode->getAttributeNode($name); ! $attr->specified = true; } } } --- 297,332 ---- $result = $this->currentNode->setAttributeNS($namespace, $name, $value); + $attribute =& $this->currentNode->getAttributeNodeNS($namespace, + $localName); ! if ($result == NAMESPACE_ERR) { $this->displayError("XML error: namespace not valid in line %d.", xml_get_current_line_number($parser)); } } else { $this->currentNode->setAttribute($name, $value); ! $attribute =& $this->currentNode->getAttributeNode($name); } + + if (isset($this->document->doctype)) { + $dtdElement =& + $this->document->doctype->elements-> + getNamedItem($this->currentNode->nodeName); + if (isset($dtdElement->attributes)) { + $dtdAttribute =& $dtdElement->attributes->getNamedItem($name); + if ($dtdAttribute->default == "#FIXED") { + // Because the xml parser do not differ between fixed and + // specified attributes, all fixed attributes are not + // specified, also if there are specified. + $attribute->specified = false; + } + else { + if ($attribute->value == $dtdAttribute->defaultValue) { + $attribute->specified = false; + } + } + } + } } } *************** *** 269,276 **** } else { ! $text = str_replace("\r", "", $text); $this->lastNode =& $this->currentNode->appendChild( ! $this->document->createTextNode($text)); } } --- 363,370 ---- } else { ! // $text = str_replace("\r", "", $text); $this->lastNode =& $this->currentNode->appendChild( ! $this->document->createTextNode($text)); } } *************** *** 295,298 **** --- 389,412 ---- /** + * The EntityReference Handler for Expat. + * + * @private + * @returns void + */ + function handleEntityReference($parser, $data) { + $entityRef =& $this->document->createEntityReference($data); + $this->lastNode =& $this->currentNode->appendChild($entityRef); + $entity = $this->document->doctype->entities->getNamedItem($data); + if (($entity != null) && + ($entity->hasChildNodes())) { + if ($entity != null) { + for ($i = 0; $i < $entity->childNodes->length; ++$i) { + $entityRef->appendChild($entity->childNodes->item($i)); + } + } + } + } + + /** * The Default Handler for Expat. * *************** *** 303,314 **** $data2 = trim($data); if ($data2 == "<!DOCTYPE") { $this->DTDTokens[] = $data2; $this->DTDString .= $data; ! $this->parseDTD = true; return true; } ! if ($this->parseDTD) { if ($data2 != "") { $this->DTDTokens[] = $data; --- 417,432 ---- $data2 = trim($data); + if (preg_match('=&([a-z,A-Z,0-9]*);=sU', $data2, $ent)) { + $this->handleEntityReference($parser, $ent[1]); + } + if ($data2 == "<!DOCTYPE") { $this->DTDTokens[] = $data2; $this->DTDString .= $data; ! $this->DTDDecl = true; return true; } ! if ($this->DTDDecl) { if ($data2 != "") { $this->DTDTokens[] = $data; *************** *** 316,326 **** $this->DTDString .= $data; if ($data2 == "[") { ! $this->parseInternalDTD = true; } if ($data2 == "]") { ! $this->parseInternalDTD = false; } ! if (($data2 == ">") && (!$this->parseInternalDTD)) { ! $this->parseDTD = false; $doctype = new DocumentType(); --- 434,444 ---- $this->DTDString .= $data; if ($data2 == "[") { ! $this->DTDInternal = true; } if ($data2 == "]") { ! $this->DTDInternal = false; } ! if (($data2 == ">") && (!$this->DTDInternal)) { ! $this->DTDDecl = false; $doctype = new DocumentType(); *************** *** 346,349 **** --- 464,494 ---- } $this->document->doctype =& $doctype; + if ($this->parseDTD) { + $this->DTDParser->parseTokens($this->DTDTokens); + if ((isset($this->DTDParser->elements)) && + ($this->DTDParser->elements->getLength() > 0)) { + $doctype->elements =& $this->DTDParser->elements; + } + if ((isset($this->DTDParser->entities)) && + ($this->DTDParser->entities->getLength() > 0)) { + $doctype->entities = new NamedNodeMap(); + for ($i = 0; $i < $this->DTDParser->entities->length; ++$i) { + $node =& $this->DTDParser->entities->item($i); + $doctype->entities->setNamedItem($this->document-> + importNode($node, + true)); + } + } + if ((isset($this->DTDParser->notations)) && + ($this->DTDParser->notations->getLength() > 0)) { + $doctype->notations = new NamedNodeMap(); + for ($i = 0; $i < $this->DTDParser->notations->length; ++$i) { + $node =& $this->DTDParser->notations->item($i); + $doctype->notations->setNamedItem($this->document-> + importNode($node, + true)); + } + } + } } return true; *************** *** 377,381 **** } ! function handleExternalEntityRef($parser, $openEntityNames, $base, $systemId, $publicId) { return true; } --- 522,536 ---- } ! /** ! * Check whether a file or url exists. ! * ! * @private ! * @returns void ! */ ! function file_exists($filename) { ! $file = @fopen($filename, "r"); ! if (!$file) { ! return false; ! } return true; } *************** *** 402,406 **** } ! echo "<strong>phpXD error:</strong> ".$message; exit; } --- 557,561 ---- } ! echo "<strong>DOMParser error:</strong> ".$message; exit; } Index: DTDParser.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/parser/DTDParser.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** DTDParser.php 2002/01/29 20:57:01 1.4 --- DTDParser.php 2002/02/06 23:10:48 1.5 *************** *** 8,21 **** /** ! * Parse a dtd. EXPERIMENTAL! ! * ! * @package DTDParser ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DTDParser { ! // public var $elements; - var $attLists; var $entities; var $notations; --- 8,20 ---- /** ! * Parse a dtd. EXPERIMENTAL! ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DTDParser { ! // public -- NamedNodeMaps var $elements; var $entities; var $notations; *************** *** 28,36 **** var $parameterEntitiesDefined; ! // private var $currentElement; var $currentAttList; - var $currentEntity; function parse($str, $dtdonly = true) { if (!empty($str)) { --- 27,40 ---- var $parameterEntitiesDefined; ! // private -- only valid while parsing ! var $document; var $currentElement; + var $attLists; var $currentAttList; + function DTDParser() { + $this->document = new Document(); + } + function parse($str, $dtdonly = true) { if (!empty($str)) { *************** *** 42,46 **** --- 46,55 ---- // search and replace parameter entities while (preg_match('=(.*)\%([a-z,A-Z,0-9,\.]*);(.*)$=sU', $str, $ent)) { + // Just a hack, cause it seems that expat doesn't support IGNORE or + // INCLUDE. $str = preg_replace('=<!--.*-->=sU', '', $str); + $str = preg_replace('=<!\[IGNORE\[.*\]\]>=sU', '', $str); + $str = preg_replace('=<!\[INCLUDE\[(.*)\]\]>=sU', '\\1', $str); + // <!ENTITY % name PUBLIC publicId systemid> while (preg_match('=(.*)<!ENTITY[ ,\n,\r,\t]*\%[ ,\n,\r,\t]*'. *************** *** 73,77 **** '[ ,\n,\r,\t]*"([a-z,A-Z,0-9,\.,\-,_,/]*)"'. '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { ! if ($this->file_exists($this->currentDir."/".$ent[4])) { if (!isset($this->parameterEntitiesDefined[$ent[2]]) || ($this->parameterEntitiesDefined[$ent[2]] < 2)) { --- 82,86 ---- '[ ,\n,\r,\t]*"([a-z,A-Z,0-9,\.,\-,_,/]*)"'. '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { ! if ($this->file_exists($ent[4])) { if (!isset($this->parameterEntitiesDefined[$ent[2]]) || ($this->parameterEntitiesDefined[$ent[2]] < 2)) { *************** *** 85,90 **** $this->parameterEntities[$ent[2]] = preg_replace('=<!--.*-->=sU', '', ! implode("", file($this->currentDir."/". ! $ent[3]))); $this->parameterEntitiesDefined[$ent[2]] = 1; } --- 94,98 ---- $this->parameterEntities[$ent[2]] = preg_replace('=<!--.*-->=sU', '', ! implode("", file($ent[3]))); $this->parameterEntitiesDefined[$ent[2]] = 1; } *************** *** 113,116 **** --- 121,130 ---- $str = str_replace("%".$entref.";", $body, $str); } + + // Just a hack, cause it seems that expat doesn't support IGNORE or + // INCLUDE. + $str = preg_replace('=<!--.*-->=sU', '', $str); + $str = preg_replace('=<!\[IGNORE\[.*\]\]>=sU', '', $str); + $str = preg_replace('=<!\[INCLUDE\[(.*)\]\]>=sU', '\\1', $str); } *************** *** 157,160 **** --- 171,186 ---- // assert: tokens are all valid $this->parseDoctype($tokens); + + if (isset($this->elements)) { + for ($i = 0; $i < $this->elements->getLength(); ++$i) { + $element =& $this->elements->item($i); + if (isset($this->attLists[$element->nodeName])) { + $element->attributes =& $this->attLists[$element->nodeName]; + } + } + } + else { + $this->elements = new NamedNodeMap(); + } } *************** *** 190,196 **** $this->parseElement($tokens, $offset + 1); // copy element ! $this->elements[$this->currentElement->tagName] = $this->currentElement; ! // $this->elements[$this->currentElement->tagName]->children =& ! // $this->currentElement->children; $offset = $this->skipToGt($tokens, $offset + 1); break; --- 216,226 ---- $this->parseElement($tokens, $offset + 1); // copy element ! if (!isset($this->elements)) { ! $this->elements = new NamedNodeMap(); ! } ! $currentElement = $this->currentElement; ! $currentElement->childNodes =& $this->currentElement->childNodes; ! $this->currentElement = null; ! $this->elements->setNamedItem($currentElement); $offset = $this->skipToGt($tokens, $offset + 1); break; *************** *** 199,204 **** $this->parseAttList($tokens, $offset + 1); $offset = $this->skipToGt($tokens, $offset + 1); ! $this->attLists[$this->currentAttList->element] = ! $this->currentAttList; break; } --- 229,234 ---- $this->parseAttList($tokens, $offset + 1); $offset = $this->skipToGt($tokens, $offset + 1); ! $this->attLists[$this->currentAttList->element] =& ! $this->currentAttList->attributes; break; } *************** *** 229,233 **** --- 259,276 ---- $token = $this->removeQuotes($tokens[$offset]); $DTDParser = new DTDParser(); + $DTDParser->parameterEntities =& $this->parameterEntities; + if ((isset($this->parameterEntitiesDefined)) && + (is_array($this->parameterEntitiesDefined))) { + foreach ($this->parameterEntitiesDefined as $key => $value) { + // internal parameter entities overwrite external + $DTDParser->parameterEntitiesDefined[$key] = 2; + } + } + $DTDParser->attLists =& $this->attLists; + $DTDParser->entities =& $this->entities; + $DTDParser->elements =& $this->elements; + $DTDParser->notations =& $this->notations; $DTDParser->parseFile($token, true); + // merge definitions from $DTDParser with this $token = $tokens[$offset + 1]; *************** *** 243,247 **** $DTDParser = new DTDParser(); $DTDParser->parameterEntities =& $this->parameterEntities; ! if (is_array($this->parameterEntitiesDefined)) { foreach ($this->parameterEntitiesDefined as $key => $value) { // internal parameter entities overwrite external --- 286,291 ---- $DTDParser = new DTDParser(); $DTDParser->parameterEntities =& $this->parameterEntities; ! if ((isset($this->parameterEntitiesDefined)) && ! (is_array($this->parameterEntitiesDefined))) { foreach ($this->parameterEntitiesDefined as $key => $value) { // internal parameter entities overwrite external *************** *** 254,258 **** $DTDParser->notations =& $this->notations; $DTDParser->parseFile($filename, true); - // merge definitions from $DTDParser with this --- 298,301 ---- *************** *** 293,317 **** } if ($nestlevel == 1) { ! if ($this->currentElement->children == null) { ! $this->currentElement->children = new DTDElementSequence(); } else { $newChild = new DTDElementSequence(); ! $newChild->parent =& $this->currentElement->children; ! $newChild->parent->appendChild($newChild); ! unset($this->currentElement->children); ! $this->currentElement->children =& $newChild; } } else { ! if ($this->currentElement->children == null) { ! $this->currentElement->children = new DTDElementChoice(); } else { $newChild = new DTDElementChoice(); ! $newChild->parent =& $this->currentElement->children; ! $newChild->parent->appendChild($newChild); ! unset($this->currentElement->children); ! $this->currentElement->children =& $newChild; } } --- 336,360 ---- } if ($nestlevel == 1) { ! if ($this->currentElement->childNodes == null) { ! $this->currentElement->childNodes = new DTDElementSequence(); } else { $newChild = new DTDElementSequence(); ! $newChild->parent =& $this->currentElement->childNodes; ! $newChild->parent->insertNode($newChild); ! unset($this->currentElement->childNodes); ! $this->currentElement->childNodes =& $newChild; } } else { ! if ($this->currentElement->childNodes == null) { ! $this->currentElement->childNodes = new DTDElementChoice(); } else { $newChild = new DTDElementChoice(); ! $newChild->parent =& $this->currentElement->childNodes; ! $newChild->parent->insertNode($newChild); ! unset($this->currentElement->childNodes); ! $this->currentElement->childNodes =& $newChild; } } *************** *** 323,331 **** ($token[strlen($token) - 1] == "+") || ($token[strlen($token) - 1] == "*")) { ! $this->currentElement->children->setNumber($token[strlen($token) - 1]); } ! if ($this->currentElement->children->parent != null) { ! $parent =& $this->currentElement->children->parent; ! $this->currentElement->children =& $parent; $this->parseElementChilds($tokens, $offset + 1); return; --- 366,375 ---- ($token[strlen($token) - 1] == "+") || ($token[strlen($token) - 1] == "*")) { ! $this->currentElement->childNodes->setNumber($token[strlen($token) - ! 1]); } ! if ($this->currentElement->childNodes->parent != null) { ! $parent =& $this->currentElement->childNodes->parent; ! $this->currentElement->childNodes =& $parent; $this->parseElementChilds($tokens, $offset + 1); return; *************** *** 351,362 **** $token = $tokens[$offset]; if ($token == "#PCDATA") { ! if ($this->currentElement->children == null) { ! $this->currentElement->children = new DTDElementChild("", "", false, true); return; } else { ! $this->currentElement->children-> ! appendChild(new DTDElementChild("", "", false, true)); return; } --- 395,406 ---- $token = $tokens[$offset]; if ($token == "#PCDATA") { ! if ($this->currentElement->childNodes == null) { ! $this->currentElement->childNodes = new DTDElementChild("", "", false, true); return; } else { ! $this->currentElement->childNodes-> ! insertNode(new DTDElementChild("", "", false, true)); return; } *************** *** 372,381 **** } $child = new DTDElementChild($token, $number); ! if ($this->currentElement->children == null) { ! $this->currentElement->children =& $child; return; } else { ! $this->currentElement->children->appendChild($child); return; } --- 416,425 ---- } $child = new DTDElementChild($token, $number); ! if ($this->currentElement->childNodes == null) { ! $this->currentElement->childNodes =& $child; return; } else { ! $this->currentElement->childNodes->insertNode($child); return; } *************** *** 389,392 **** --- 433,437 ---- function parseAttributes($tokens, $offset) { + $count = 0; while ($tokens[$offset] != ">") { $name = $tokens[$offset]; *************** *** 398,407 **** $type = $tokens[$offset + 1]; if ($type == "(") { ! $attribute = new DTDAttribute($name, "ENUMERATION"); // Enumeration $offset += 2; while ($tokens[$offset] != ")") { if ($tokens[$offset] != "|") { ! $attribute->value[] = $tokens[$offset]; } $offset++; --- 443,452 ---- $type = $tokens[$offset + 1]; if ($type == "(") { ! $attribute[$count] = new DTDAttribute($name, "ENUMERATION"); // Enumeration $offset += 2; while ($tokens[$offset] != ")") { if ($tokens[$offset] != "|") { ! $attribute[$count]->value[] = $tokens[$offset]; } $offset++; *************** *** 409,481 **** } else { ! $attribute = new DTDAttribute($name, $type); $offset++; } $default = $tokens[$offset + 1]; ! $attribute->default = $default; if (($default != "#IMPLIED") && ($default != "#REQUIRED")) { if ($default == "#FIXED") { ! $attribute->defaultValue = $this->removeQuotes($tokens[$offset + 2]); $offset++; } else { ! $attribute->defaultValue = $this->removeQuotes($tokens[$offset + 1]); } } $offset += 2; ! $this->currentAttList->attributes[$attribute->name] = $attribute; } } function parseEntity($tokens, $offset) { ! $name = $tokens[$offset]; ! $entity = new DTDEntity($name); ! $entity->ndata = false; ! $body = $tokens[$offset + 1]; ! if (($body == "SYSTEM") || ($body == "PUBLIC")) { ! if ($body == "SYSTEM") { ! $entity->systemId = $tokens[$offset + 2]; $offset = $offset + 3; } else { ! $entity->publicId = $tokens[$offset + 2]; ! $entity->systemId = $tokens[$offset + 3]; $offset = $offset + 4; } if ($tokens[$offset] == "NDATA") { ! $entity->ndata = true; ! $entity->notation = $tokens[$offset + 1]; } } else { ! $entity->body = $this->removeQuotes($body); } ! $this->entities[$name] =& $entity; } function parseNotation($tokens, $offset) { ! $name = $tokens[$offset]; ! $notation = new DTDNotation($name); ! $entity->publicId = ""; ! $entity->systemId = ""; ! $body = $tokens[$offset + 1]; ! if ($body == "SYSTEM") { ! $notation->systemId = $tokens[$offset + 2]; } ! if ($body == "PUBLIC") { ! $notation->publicId = $tokens[$offset + 2]; if ($tokens[$offset + 3] != ">") { ! $notation->systemId = $tokens[$offset + 3]; } } ! $this->notations[$name] =& $notation; } function publicId2Filename($publicId, $systemId) { - // TODO: add all known publicId and systemIds - if ($publicId == "-//W3C//DTD XHTML 1.0 Strict//EN") { - return "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; - } return $systemId; } --- 454,552 ---- } else { ! $attribute[$count] = new DTDAttribute($name, $type); $offset++; } $default = $tokens[$offset + 1]; ! $attribute[$count]->default = $default; if (($default != "#IMPLIED") && ($default != "#REQUIRED")) { if ($default == "#FIXED") { ! $attribute[$count]->defaultValue = ! $this->removeQuotes($tokens[$offset + 2]); $offset++; } else { ! $attribute[$count]->defaultValue = ! $this->removeQuotes($tokens[$offset + 1]); } } $offset += 2; ! if (!isset($this->currentAttList->attributes)) { ! $this->currentAttList->attributes = new NamedNodeMap(); ! } ! $this->currentAttList->attributes->setNamedItem($attribute[$count]); ! $attribute = null; ! $count++; } } function parseEntity($tokens, $offset) { ! $entity = new Entity(); ! $entity->ownerDocument =& $this->document; ! $entity->nodeName = $tokens[$offset]; ! $value = $tokens[$offset + 1]; ! $entityParser = new DOMParser(); ! if (($value == "SYSTEM") || ($value == "PUBLIC")) { ! if ($value == "SYSTEM") { ! $entity->systemId = $this->removeQuotes($tokens[$offset + 2]); $offset = $offset + 3; + + $entityDocument =& + $entityParser->parseExternalEntity($entity->systemId); } else { ! $entity->publicId = $this->removeQuotes($tokens[$offset + 2]); ! $entity->systemId = $this->removeQuotes($tokens[$offset + 3]); $offset = $offset + 4; + + $entityDocument =& + $entityParser->parseExternalEntity( + $this->publicId2Filename($entity->publicId, + $entity->systemId)); } if ($tokens[$offset] == "NDATA") { ! $entity->notationName = $tokens[$offset + 1]; } } else { ! $entityDocument =& ! $entityParser->parseEntity($this->removeQuotes($value)); ! } ! // parsed entity? ! if ($entity->notationName == null) { ! $entityNodes =& $entityDocument->documentElement->childNodes; ! for ($i = 0; $i < $entityNodes->length; ++$i) { ! $node =& $entityNodes->item($i); ! $entity->appendChild($this->document->importNode($node, ! true)); ! } } ! if (!isset($this->entities)) { ! $this->entities = new NamedNodeMap(); ! } ! $this->entities->setNamedItem($entity); } function parseNotation($tokens, $offset) { ! $notation = new Notation(); ! $notation->nodeName = $tokens[$offset]; ! $notation->ownerDocument =& $this->document; ! $value = $tokens[$offset + 1]; ! if ($value == "SYSTEM") { ! $notation->systemId = $this->removeQuotes($tokens[$offset + 2]); } ! if ($value == "PUBLIC") { ! $notation->publicId = $this->removeQuotes($tokens[$offset + 2]); if ($tokens[$offset + 3] != ">") { ! $notation->systemId = $this->removeQuotes($tokens[$offset + 3]); } + } + if (!isset($this->notations)) { + $this->notations = new NamedNodeMap(); } ! $this->notations->setNamedItem($notation); } function publicId2Filename($publicId, $systemId) { return $systemId; } *************** *** 546,706 **** } ! echo "<strong>phpXD error:</strong> ".$message; exit; } } - class DTDNode { - // abstract class for all DTD classes - } - - class DTDAttList extends DTDNode { - var $attributes; - var $element; - - function DTDAttList($element) { - $this->element = $element; - } - } - - class DTDAttribute extends DTDNode { - var $name; - var $type; - var $value; - var $default; - var $defaultValue; - - function DTDAttribute($name, $type) { - $this->name = $name; - $this->type = $type; - } - } - - class DTDEntity extends DTDNode { - var $name; - var $body; - var $publicId; - var $systemId; - var $ndata; - var $notation; - - function DTDEntity($name) { - $this->name = $name; - } - } - - class DTDNotation extends DTDNode { - var $name; - var $publicId; - var $systemId; - - function DTDNotation($name) { - $this->name = $name; - } - } - - class DTDElement extends DTDNode { - var $tagName; - var $children; - - function DTDElement($tagName) { - $this->tagName = $tagName; - $this->children = null; - } - } - - class DTDElementChild extends DTDNode { - var $number = ""; - - var $any = false; - var $pcdata = false; - var $tagName; - var $id; - - function DTDElementChild($tagName, $number, $any = false, $pcdata = false) { - if ($any) { - $this->any = true; - return; - } - - if ($pcdata) { - $this->pcdata = true; - return; - } - - $this->tagName = $tagName; - $this->setNumber($number); - } - - - function setNumber($number) { - $this->number = $number; - } - - function toString() { - if ($this->any) { - return "ANY"; - } - if ($this->pcdata) { - return "#PCDATA"; - } - return $this->tagName.$this->number; - } - } - - class DTDElementSequence extends DTDElementChild { - var $sequence; - var $length = 0; - var $parent = null; - - function DTDElementSequence() { - } - - function appendChild(&$child) { - $this->sequence[$this->length++] =& $child; - } - - function toString() { - $str = "("; - $count = 0; - for ($count = 0; $count < $this->length; ++$count) { - $child =& $this->sequence[$count]; - if ($count != 0) { - $str .= " , "; - } - $str .= $child->toString(); - } - $str .= ")".$this->number; - return $str; - } - } - - class DTDElementChoice extends DTDElementChild { - var $choices; - var $length = 0; - var $parent = null; - - function DTDElementChoice() { - } - - function DTDElementChoice() { - } - - function appendChild(&$child) { - $this->choices[$this->length++] =& $child; - } - - function toString() { - $str = "("; - $count = 0; - for ($count = 0; $count < $this->length; ++$count) { - $child =& $this->choices[$count]; - if ($count != 0) { - $str .= " | "; - } - $str .= $child->toString(); - } - $str .= ")".$this->number; - return $str; - } - } \ No newline at end of file --- 617,623 ---- } ! echo "<strong>DTDParser error:</strong> ".$message; exit; } } |
From: Thomas D. <th...@us...> - 2002-02-06 23:08:35
|
Update of /cvsroot/phpxd/phpXD/include/dom In directory usw-pr-cvs1:/tmp/cvs-serv1013/include/dom Modified Files: Comment.php Log Message: Index: Comment.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Comment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Comment.php 2002/01/25 22:18:18 1.1 --- Comment.php 2002/02/06 23:08:33 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM Comment interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Comment extends CharacterData { /** --- 8,17 ---- /** ! * Class representing the DOM Comment interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Comment extends CharacterData { /** |
From: Thomas D. <th...@us...> - 2002-02-06 23:08:03
|
Update of /cvsroot/phpxd/phpXD/include In directory usw-pr-cvs1:/tmp/cvs-serv30285/include Added Files: dtd.php Log Message: Added initial support for DTDs. --- NEW FILE: dtd.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: dtd.php,v 1.1 2002/02/06 22:58:43 thomi Exp $ require($path."include/dtd/DTDAttList.php"); require($path."include/dtd/DTDAttribute.php"); require($path."include/dtd/DTDElement.php"); require($path."include/dtd/DTDElementChild.php"); require($path."include/dtd/DTDElementSequence.php"); require($path."include/dtd/DTDElementChoice.php"); ?> |
From: Thomas D. <th...@us...> - 2002-02-06 23:08:03
|
Update of /cvsroot/phpxd/phpXD In directory usw-pr-cvs1:/tmp/cvs-serv30285 Modified Files: phpXD.php Log Message: Added initial support for DTDs. Index: phpXD.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/phpXD.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** phpXD.php 2002/01/26 13:20:00 1.25 --- phpXD.php 2002/02/06 22:58:41 1.26 *************** *** 7,13 **** --- 7,15 ---- // $Id$ + // Set the phpXD install path. $path = "."; require($path."include/dom.php"); + require($path."include/dtd.php"); require($path."include/parser.php"); ?> |
From: Thomas D. <th...@us...> - 2002-02-06 23:08:03
|
Update of /cvsroot/phpxd/phpXD/include/dtd In directory usw-pr-cvs1:/tmp/cvs-serv30624/include/dtd Added Files: DTDAttList.php DTDAttribute.php DTDElement.php DTDElementChild.php DTDElementChoice.php DTDElementSequence.php Log Message: Interface for DTD support, which is not included in W3C DOM. This is EXPERIMENTAL! --- NEW FILE: DTDAttList.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: DTDAttList.php,v 1.1 2002/02/06 23:00:41 thomi Exp $ // EXPERIMENTAL. Interface could change later. /** * Interface to represent <!ATTLIST ..> definitions. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class DTDAttList { /** * A NamedNodeMap with all defined attributes. * * @private * @type NamedNodeMap */ var $attributes; /** * The element this attribute list belongs to. * * @private * @type string */ var $element; /** * Constructor of the class. * * @private */ function DTDAttList($element) { $this->element = $element; } } ?> --- NEW FILE: DTDAttribute.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: DTDAttribute.php,v 1.1 2002/02/06 23:00:42 thomi Exp $ // EXPERIMENTAL. Interface could change later. /** * Interface to represent attribute definitions in the DTD. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class DTDAttribute { /** * The name of the attribute. * * @private * @type string */ var $nodeName; /** * The type of the attribute, could be: "CDATA", "NMTOKEN", "NMTOKENS", * "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NOTATION" and * "ENUMERATION". * * @private * @type string */ var $type; /** * If type == "ENUMBERATION" $value is an array with all possible values. * * @private * @type string */ var $value; /** * "#IMPLIED", "#REQUIRED" or "#FIXED". * * @private * @type string */ var $default; /** * A default value if defined. * * @private * @type string */ var $defaultValue; /** * Constructor of the class. * * @private */ function DTDAttribute($nodeName, $type) { $this->nodeName = $nodeName; $this->type = $type; } } ?> --- NEW FILE: DTDElement.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: DTDElement.php,v 1.1 2002/02/06 23:00:42 thomi Exp $ // EXPERIMENTAL. Interface could change later. /** * Interface to represent <!ELEMENT ..> definitions. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class DTDElement { /** * The element name. * * @private * @type string */ var $nodeName; /** * The child nodes of this element, null for empty elements, a * DTDElementChild for ANY oder #PCDATA or if only one child is * defined, else a NodeList. * * @private * @type NodeList | DTDElementChild */ var $childNodes; /** * A NamedNodeMap with all defined attributes. * * @private * @type NamedNodeMap */ var $attributes; /** * Constructor of the class. * * @private */ function DTDElement($nodeName) { $this->nodeName = $nodeName; $this->childNodes = null; } } ?> --- NEW FILE: DTDElementChild.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: DTDElementChild.php,v 1.1 2002/02/06 23:00:42 thomi Exp $ // EXPERIMENTAL. Interface could change later. /** * Interface to represent the definitions of element childs. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class DTDElementChild { /** * Child is ANY. * * @private * @type boolean */ var $any = false; /** * The number of this child, "*", "+" or "?". * * @private * @type string */ var $number = ""; /** * Child is #PCDATA. * * @private * @type boolean */ var $pcdata = false; /** * The name of the child. * * @private * @type string */ var $nodeName = ""; /** * Constructor of the class. * * @param $nodeName The name of this child element. * @param $number The number of this childen - "?", "*" or "+" * @param $any Element is ANY * @param $pcdata Element is #PCDATA * @private */ function DTDElementChild($nodeName, $number, $any = false, $pcdata = false) { if ($any) { $this->any = true; return; } if ($pcdata) { $this->pcdata = true; return; } $this->nodeName = $nodeName; $this->setNumber($number); } /** * Sets the number of this child. * * @param $number "*" or "+" or "?" * @private */ function setNumber($number) { $this->number = $number; } /** * String representation for this object. For debugging only. * * @private * @returns string */ function toString() { if ($this->any) { return "ANY"; } if ($this->pcdata) { return "#PCDATA"; } return $this->nodeName.$this->number; } } ?> --- NEW FILE: DTDElementChoice.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: DTDElementChoice.php,v 1.1 2002/02/06 23:00:42 thomi Exp $ // EXPERIMENTAL. Interface could change later. /** * Interface to represent a choice of element childs, i.e. (a | b | c), etc. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class DTDElementChoice extends NodeList { /** * The parent of this sequence or null. * * @private * @type DTDElementChoice | DTDElementSequence */ var $parent = null; /** * The number of this child, "*", "+" or "?". * * @private * @type string */ var $number = ""; /** * Constructor of the class. * * @private */ function DTDElementChoice() { } /** * Sets the number of this child. * * @param $number "*" or "+" or "?" * @private */ function setNumber($number) { $this->number = $number; } /** * String representation for this object. For debugging only. * * @private * @returns string */ function toString() { $str = "("; $count = 0; for ($count = 0; $count < $this->length; ++$count) { $child =& $this->nodes[$count]; if ($count != 0) { $str .= " | "; } $str .= $child->toString(); } $str .= ")".$this->number; return $str; } } ?> --- NEW FILE: DTDElementSequence.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: DTDElementSequence.php,v 1.1 2002/02/06 23:00:42 thomi Exp $ // EXPERIMENTAL. Interface could change later. /** * Interface to represent a sequence of element childs, i.e. (a , b , c), etc. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class DTDElementSequence extends NodeList { /** * The parent of this sequence or null. * * @private * @type DTDElementChoice | DTDElementSequence */ var $parent = null; /** * The number of this child, "*", "+" or "?". * * @private * @type string */ var $number = ""; /** * Constructor of the class. * * @private */ function DTDElementSequence() { } /** * Sets the number of this child. * * @param $number "*" or "+" or "?" * @private */ function setNumber($number) { $this->number = $number; } /** * String representation for this object. For debugging only. * * @private * @returns string */ function toString() { $str = "("; $count = 0; for ($count = 0; $count < $this->length; ++$count) { $child =& $this->nodes[$count]; if ($count != 0) { $str .= " , "; } $str .= $child->toString(); } $str .= ")".$this->number; return $str; } } ?> |
From: Thomas D. <th...@us...> - 2002-02-06 23:07:54
|
Update of /cvsroot/phpxd/phpXD/include/dom In directory usw-pr-cvs1:/tmp/cvs-serv673/include/dom Modified Files: Attr.php CDataSection.php CharacterData.php DOMException.php DOMImplementation.php Document.php DocumentFragment.php DocumentType.php Element.php Entity.php EntityReference.php NamedNodeMap.php Node.php NodeList.php ProcessingInstruction.php Text.php Added Files: Notation.php Log Message: Added support for entities, notations and default values for attributes. --- NEW FILE: Notation.php --- <?php // phpXD - a XML DOM Implementation // // This Software and all associated files are released unter the // GNU Public License (GPL), see LICENSE for details. // // $Id: Notation.php,v 1.1 2002/02/06 23:07:51 thomi Exp $ /** * Class representing the DOM Notation interface. * * @package phpXD * @author Thomas Dohmke <th...@do...> * @version $Revision: 1.1 $ */ class Notation extends Node { /** * Die public identifier URL (URI) for this notation.<br> * DOM-Level 1 * * @private * @type string */ var $publicId; /** * Die system identifier URL (URI) for this notation.<br> * DOM-Level 1 * * @private * @type string */ var $systemId; /** * Constructor of the class. * * @public */ function Notation() { $this->Node(); $this->nodeType = NOTATION_NODE; } /** * Returns the public identifier URL. * * @public * @return string */ function getPublicId() { return $this->publicId; } /** * Returns the system identifier URL. * * @public * @return string */ function getSystemId() { return $this->systemId; } } ?> Index: Attr.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Attr.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Attr.php 2002/01/25 22:18:18 1.1 --- Attr.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM Attr interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Attr extends Node { /** --- 8,17 ---- /** ! * Class representing the DOM Attr interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Attr extends Node { /** *************** *** 137,140 **** --- 137,141 ---- $this->nodeValue =& $this->firstChild->nodeValue; $this->value =& $this->nodeValue; + $this->specified = true; } Index: CDataSection.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/CDataSection.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** CDataSection.php 2002/01/25 22:18:18 1.1 --- CDataSection.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM CDataSection interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class CDataSection extends Text { /** --- 8,17 ---- /** ! * Class representing the DOM CDataSection interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class CDataSection extends Text { /** Index: CharacterData.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/CharacterData.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** CharacterData.php 2002/01/25 22:18:18 1.1 --- CharacterData.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM CharacterData interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class CharacterData extends Node { /** --- 8,17 ---- /** ! * Class representing the DOM CharacterData interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class CharacterData extends Node { /** Index: DOMException.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/DOMException.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DOMException.php 2002/01/25 22:18:18 1.1 --- DOMException.php 2002/02/06 23:07:51 1.2 *************** *** 8,144 **** /** ! * Because PHP4 doesn't support exceptions, only the ExceptionCodes are ! * defined. The Functions which normally would like to raise a exception, ! * returns one of this ExceptionCodes. ! * Currently not all ExceptionsCodes are used, only NOT_SUPPORTED_ERR is ! * really often returned. ;=) ! */ /** ! * If index or size is negative, or greater than the allowed value.<br> ! * DOM-Level 1 ! * ! * @const INDEX_SIZE_ERR ! */ define("INDEX_SIZE_ERR", 1); /** ! * If the specified range of text does not fit into a DOMString.<br> ! * DOM-Level 1 ! * ! * @const DOMSTRING_SIZE_ERR ! */ define("DOMSTRING_SIZE_ERR", 2); /** ! * If any node is inserted somewhere it doesn't belong.<br> ! * DOM-Level 1 ! * ! * @const HIERARCHY_REQUEST_ERR ! */ define("HIERARCHY_REQUEST_ERR", 3); /** ! * If a node is used in a different document than the one ! * that created it (that doesn't support it).<br> ! * DOM-Level 1 ! * ! * @const WRONG_DOCUMENT_ERR ! */ define("WRONG_DOCUMENT_ERR", 4); /** ! * If an invalid or illegal character is specified, such as in a name. <br> ! * DOM-Level 1 ! * ! * @const INVALID_CHARACTER_ERR ! */ define("INVALID_CHARACTER_ERR", 5); /** ! * If data is specified for a node which does not support data.<br> ! * DOM-Level 1 ! * ! * @const NO_DATA_ALLOWED_ERR ! */ define("NO_DATA_ALLOWED_ERR", 6); /** ! * If an attempt is made to modify an object where modifications ! * are not allowed.<br> ! * DOM-Level 1 ! * ! * @const NO_MODIFICATION_ALLOWED_ERR ! */ define("NO_MODIFICATION_ALLOWED_ERR", 7); /** ! * If an attempt is made to reference a node in a context where ! * it does not exist.<br> ! * DOM-Level 1 ! * ! * @const NOT_FOUND_ERR ! */ define("NOT_FOUND_ERR", 8); /** ! * If the implementation does not support the requested type of object ! * or operation.<br> ! * DOM-Level 1 ! * ! * @const NOT_SUPPORTED_ERR ! */ define("NOT_SUPPORTED_ERR", 9); /** ! * If an attempt is made to add an attribute that is already in ! * use elsewhere.<br> ! * DOM-Level 1 ! * ! * @const INUSE_ATTRIBUTE_ERR ! */ define("INUSE_ATTRIBUTE_ERR", 10); /** ! * If an attempt is made to use an object that is not, or is no ! * longer, usable.<br> ! * DOM-Level 2 ! * ! * @const INVALID_STATE_ERR ! */ define("INVALID_STATE_ERR", 11); /** ! * If an invalid or illegal string is specified.<br> ! * DOM-Level 2 ! * ! * @const SYNTAX_ERR ! */ define("SYNTAX_ERR", 12); /** ! * If an attempt is made to modify the type of the underlying object.<br> ! * DOM-Level 2 ! * ! * @const INVALID_MODIFICATION_ERR ! */ define("INVALID_MODIFICATION_ERR", 13); /** ! * If an attempt is made to create or change an object in a way which ! * is incorrect with regard to namespaces.<br> ! * DOM-Level 2 ! * ! * @const NAMESPACE_ERR ! */ define("NAMESPACE_ERR", 14); /** ! * If a parameter or an operation is not supported by the underlying object.<br> ! * DOM-Level 2 ! * ! * @const INVALID_ACCESS_ERR ! */ define("INVALID_ACCESS_ERR", 15); - ?> --- 8,144 ---- /** ! * Because PHP4 doesn't support exceptions, only the ExceptionCodes are ! * defined. The Functions which normally would like to raise a exception, ! * returns one of this ExceptionCodes. ! * Currently not all ExceptionsCodes are used, only NOT_SUPPORTED_ERR is ! * really often returned. ;=) ! */ /** ! * If index or size is negative, or greater than the allowed value.<br> ! * DOM-Level 1 ! * ! * @const INDEX_SIZE_ERR ! */ define("INDEX_SIZE_ERR", 1); /** ! * If the specified range of text does not fit into a DOMString.<br> ! * DOM-Level 1 ! * ! * @const DOMSTRING_SIZE_ERR ! */ define("DOMSTRING_SIZE_ERR", 2); /** ! * If any node is inserted somewhere it doesn't belong.<br> ! * DOM-Level 1 ! * ! * @const HIERARCHY_REQUEST_ERR ! */ define("HIERARCHY_REQUEST_ERR", 3); /** ! * If a node is used in a different document than the one ! * that created it (that doesn't support it).<br> ! * DOM-Level 1 ! * ! * @const WRONG_DOCUMENT_ERR ! */ define("WRONG_DOCUMENT_ERR", 4); /** ! * If an invalid or illegal character is specified, such as in a name. <br> ! * DOM-Level 1 ! * ! * @const INVALID_CHARACTER_ERR ! */ define("INVALID_CHARACTER_ERR", 5); /** ! * If data is specified for a node which does not support data.<br> ! * DOM-Level 1 ! * ! * @const NO_DATA_ALLOWED_ERR ! */ define("NO_DATA_ALLOWED_ERR", 6); /** ! * If an attempt is made to modify an object where modifications ! * are not allowed.<br> ! * DOM-Level 1 ! * ! * @const NO_MODIFICATION_ALLOWED_ERR ! */ define("NO_MODIFICATION_ALLOWED_ERR", 7); /** ! * If an attempt is made to reference a node in a context where ! * it does not exist.<br> ! * DOM-Level 1 ! * ! * @const NOT_FOUND_ERR ! */ define("NOT_FOUND_ERR", 8); /** ! * If the implementation does not support the requested type of object ! * or operation.<br> ! * DOM-Level 1 ! * ! * @const NOT_SUPPORTED_ERR ! */ define("NOT_SUPPORTED_ERR", 9); /** ! * If an attempt is made to add an attribute that is already in ! * use elsewhere.<br> ! * DOM-Level 1 ! * ! * @const INUSE_ATTRIBUTE_ERR ! */ define("INUSE_ATTRIBUTE_ERR", 10); /** ! * If an attempt is made to use an object that is not, or is no ! * longer, usable.<br> ! * DOM-Level 2 ! * ! * @const INVALID_STATE_ERR ! */ define("INVALID_STATE_ERR", 11); /** ! * If an invalid or illegal string is specified.<br> ! * DOM-Level 2 ! * ! * @const SYNTAX_ERR ! */ define("SYNTAX_ERR", 12); /** ! * If an attempt is made to modify the type of the underlying object.<br> ! * DOM-Level 2 ! * ! * @const INVALID_MODIFICATION_ERR ! */ define("INVALID_MODIFICATION_ERR", 13); /** ! * If an attempt is made to create or change an object in a way which ! * is incorrect with regard to namespaces.<br> ! * DOM-Level 2 ! * ! * @const NAMESPACE_ERR ! */ define("NAMESPACE_ERR", 14); /** ! * If a parameter or an operation is not supported by the underlying ! * object.<br> ! * DOM-Level 2 ! * ! * @const INVALID_ACCESS_ERR ! */ define("INVALID_ACCESS_ERR", 15); ?> Index: DOMImplementation.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/DOMImplementation.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** DOMImplementation.php 2002/01/29 17:47:31 1.3 --- DOMImplementation.php 2002/02/06 23:07:51 1.4 *************** *** 8,17 **** /** ! * Class representing the DOM DOMImplementation interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DOMImplementation { /** --- 8,17 ---- /** ! * Class representing the DOM DOMImplementation interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DOMImplementation { /** Index: Document.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Document.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Document.php 2002/01/29 20:57:01 1.2 --- Document.php 2002/02/06 23:07:51 1.3 *************** *** 8,17 **** /** ! * Class representing the DOM Document interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Document extends Node { /** --- 8,17 ---- /** ! * Class representing the DOM Document interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Document extends Node { /** *************** *** 50,57 **** */ function Document() { ! Node::Node(); $this->nodeType = DOCUMENT_NODE; $this->nodeName = "#document"; $this->implementation = new DOMImplementation(); } --- 50,58 ---- */ function Document() { ! $this->Node(); $this->nodeType = DOCUMENT_NODE; $this->nodeName = "#document"; $this->implementation = new DOMImplementation(); + $this->ownerDocument =& $this; } *************** *** 117,121 **** $new = new CDataSection(); $new->nodeValue = $data; ! $new->ownerDocument = &$this; return $new; } --- 118,122 ---- $new = new CDataSection(); $new->nodeValue = $data; ! $new->ownerDocument =& $this; return $new; } *************** *** 132,136 **** $new = new Comment(); $new->nodeValue = $data; ! $new->ownerDocument = &$this; return $new; } --- 133,137 ---- $new = new Comment(); $new->nodeValue = $data; ! $new->ownerDocument =& $this; return $new; } *************** *** 159,163 **** $new = new Element(); $new->nodeName = $tagName; ! $new->ownerDocument = &$this; return $new; } --- 160,164 ---- $new = new Element(); $new->nodeName = $tagName; ! $new->ownerDocument =& $this; return $new; } *************** *** 172,176 **** */ function &createEntityReference($name) { ! return NOT_SUPPORTED_ERR; } --- 173,180 ---- */ function &createEntityReference($name) { ! $new = new EntityReference(); ! $new->nodeName = $name; ! $new->ownerDocument =& $this; ! return $new; } *************** *** 188,192 **** $new->nodeValue = $data; $new->nodeName = $target; ! $new->ownerDocument = &$this; return $new; } --- 192,196 ---- $new->nodeValue = $data; $new->nodeName = $target; ! $new->ownerDocument =& $this; return $new; } *************** *** 203,207 **** $new = new Text(); $new->nodeValue = $data; ! $new->ownerDocument = &$this; return $new; } --- 207,211 ---- $new = new Text(); $new->nodeValue = $data; ! $new->ownerDocument =& $this; return $new; } *************** *** 339,343 **** function &importNode(&$importedNode, $deep) { if ($importedNode->nodeType == ATTRIBUTE_NODE) { ! $newNode =& $importedNode->cloneNode(true); $newNode->ownerElement = NULL; $newNode->specified = true; --- 343,347 ---- function &importNode(&$importedNode, $deep) { if ($importedNode->nodeType == ATTRIBUTE_NODE) { ! $newNode =& $importedNode->cloneNode(true, $this); $newNode->ownerElement = NULL; $newNode->specified = true; *************** *** 345,348 **** --- 349,353 ---- else { if (($importedNode->nodeType == ELEMENT_NODE) || + ($importedNode->nodeType == ENTITY_NODE) || ($importedNode->nodeType == DOCUMENT_FRAGMENT_NODE) || ($importedNode->nodeType == PROCESSING_INSTRUCTION_NODE) || *************** *** 350,354 **** ($importedNode->nodeType == CDATA_SECTION_NODE) || ($importedNode->nodeType == COMMENT_NODE)) { ! $newNode =& $importedNode->cloneNode($deep); } else { --- 355,359 ---- ($importedNode->nodeType == CDATA_SECTION_NODE) || ($importedNode->nodeType == COMMENT_NODE)) { ! $newNode =& $importedNode->cloneNode($deep, $this); } else { Index: DocumentFragment.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/DocumentFragment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DocumentFragment.php 2002/01/25 22:18:18 1.1 --- DocumentFragment.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM DocumentFragment interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DocumentFragment extends Node { /** --- 8,17 ---- /** ! * Class representing the DOM DocumentFragment interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DocumentFragment extends Node { /** Index: DocumentType.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/DocumentType.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DocumentType.php 2002/01/25 22:18:18 1.1 --- DocumentType.php 2002/02/06 23:07:51 1.2 *************** *** 8,24 **** /** ! * Class representing the DOM DocumentType interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DocumentType extends Node { /** * A list of all generall entities declared in the DTD.<br> ! * DOM-Level 1-- NYI * * @private ! * @type string */ var $entities; --- 8,33 ---- /** ! * Class representing the DOM DocumentType interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class DocumentType extends Node { /** + * A list off all defined elements and attributes. This is not DOM + * standard! + * + * @private + * @type NamedNodeMap + */ + var $elements; + + /** * A list of all generall entities declared in the DTD.<br> ! * DOM-Level 1 * * @private ! * @type NamedNodeMap */ var $entities; *************** *** 35,42 **** /** * Contains a list of XML notation declarations.<br> ! * DOM-Level 1 -- NYI * * @private ! * @type string */ var $notations; --- 44,51 ---- /** * Contains a list of XML notation declarations.<br> ! * DOM-Level 1 * * @private ! * @type NamedNodeMap */ var $notations; *************** *** 79,84 **** $this->name =& $this->nodeName; ! //$notation = new NamedNodeMap(); ! //$entities = new NamedNodeMap(); } --- 88,94 ---- $this->name =& $this->nodeName; ! $this->notations = new NamedNodeMap(); ! $this->elements = new NamedNodeMap(); ! $this->entities = new NamedNodeMap(); } *************** *** 86,96 **** * Returns a NamedNodeMap containing all general entities declared in the * DTD.<br> ! * DOM-Level 1 -- NYI * * @public * @returns NamedNodeMap */ ! function getEntities() { ! return NOT_SUPPORTED_ERR; } --- 96,106 ---- * Returns a NamedNodeMap containing all general entities declared in the * DTD.<br> ! * DOM-Level 1 * * @public * @returns NamedNodeMap */ ! function &getEntities() { ! return $this->entities; } *************** *** 120,130 **** * Returns a NamedNodeMap containing all notations declared in the * DTD.<br> ! * DOM-Level 1 -- NYI * * @public * @returns NamedNodeMap */ ! function getNotations() { ! return NOT_SUPPORTED_ERR; } --- 130,140 ---- * Returns a NamedNodeMap containing all notations declared in the * DTD.<br> ! * DOM-Level 1 * * @public * @returns NamedNodeMap */ ! function &getNotations() { ! return $this->notation; } Index: Element.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Element.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Element.php 2002/01/25 22:18:18 1.1 --- Element.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM Element interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Element extends Node { /** --- 8,17 ---- /** ! * Class representing the DOM Element interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Element extends Node { /** *************** *** 56,60 **** function getAttribute($name) { $attr =& $this->getAttributeNode($name); ! return $attr->getValue(); } --- 56,65 ---- function getAttribute($name) { $attr =& $this->getAttributeNode($name); ! if ($attr != NOT_FOUND_ERROR) { ! return $attr->getValue(); ! } ! else { ! return ""; ! } } *************** *** 98,102 **** function removeAttribute($name) { if (isset($this->attributes)) { ! $this->attributes->removeNamedItem($name); } } --- 103,108 ---- function removeAttribute($name) { if (isset($this->attributes)) { ! $attr =& $this->attributes->getNamedItem($name); ! $this->removeAttributeNode($attr); } } *************** *** 111,117 **** */ function &removeAttributeNode(&$oldAttr) { if (isset($this->attributes)) { ! return $this->attributes->removeNamedItem($oldAttr->nodeName); } } --- 117,158 ---- */ function &removeAttributeNode(&$oldAttr) { + $name = $oldAttr->nodeName; + if (isset($oldAttr->namespaceURI)) { + $namespaceURI = $oldAttr->namespaceURI; + } + else { + $namespaceURI = ""; + } if (isset($this->attributes)) { ! if ($namespaceURI == "") { ! $oldAttr =& $this->attributes->removeNamedItem($oldAttr->nodeName); ! } ! else { ! $localName = substr($name, strpos($name, ":") + 1); ! $oldAttr =& $this->attributes->removeNamedItemNS($namespaceURI, ! $localName); ! } ! } ! if (isset($this->ownerDocument->doctype)) { ! $dtdElement =& ! $this->ownerDocument->doctype->elements-> ! getNamedItem($this->nodeName); ! $dtdAttribute =& $dtdElement->attributes->getNamedItem($name); ! if (($dtdAttribute->default == "#FIXED") || ! ($dtdAttribute->defaultValue != "")) { ! if (empty($namespaceURI)) { ! $this->setAttribute($name, $dtdAttribute->defaultValue); ! $attribute =& $this->getAttributeNode($name); ! $attribute->specified = false; ! } ! else { ! $this->setAttributeNS($namespaceURI, $name, ! $dtdAttribute->defaultValue); ! $attribute =& $this->getAttributeNodeNS($namespaceURI, $localName); ! $attribute->specified = false; ! } ! } } + return $oldAttr; } *************** *** 132,135 **** --- 173,177 ---- $new->ownerElement = &$this; $new->ownerDocument = &$this->ownerDocument; + $new->specified = true; if (empty($this->attributes)) { *************** *** 149,152 **** --- 191,196 ---- */ function &setAttributeNode(&$newAttr) { + $newAttr->specified = true; + if (empty($this->attributes)) { $this->attributes = new NamedNodeMap(); *************** *** 198,202 **** function &getElementsByTagNameNS($namespaceURI, $localName) { $result = new NodeList(); ! $this->getElementsByTagNameNSList($namespaceURI, $localName, $this->firstChild, $result); return $result; } --- 242,247 ---- function &getElementsByTagNameNS($namespaceURI, $localName) { $result = new NodeList(); ! $this->getElementsByTagNameNSList($namespaceURI, $localName, ! $this->firstChild, $result); return $result; } *************** *** 256,262 **** */ function removeAttributeNS($namespaceURI, $localName) { ! if (isset($this->attributes)) { ! $this->attributes->removeNamedItemNS($namespaceURI, $localName); ! } } --- 301,306 ---- */ function removeAttributeNS($namespaceURI, $localName) { ! $attr =& $this->getNamedItemNS($namespaceURI, $localName); ! return $this->removeAttributeNode($attr); } *************** *** 272,276 **** function setAttributeNS($namespaceURI, $qualifiedName, $value) { $prefix = substr($qualifiedName, 0, strpos($qualifiedName, ":")); ! $localName = substr($qualifiedName, strpos($this->nodeName, ":")+1); if (empty($prefix) || empty($localName)) { --- 316,320 ---- function setAttributeNS($namespaceURI, $qualifiedName, $value) { $prefix = substr($qualifiedName, 0, strpos($qualifiedName, ":")); ! $localName = substr($qualifiedName, strpos($qualifiedName, ":") + 1); if (empty($prefix) || empty($localName)) { *************** *** 287,300 **** } ! if (($this->namespaceURI != "http://www.w3.org/2000/xmlns/") && ($prefix == "xmlns")) { return NAMESPACE_ERR; } ! if ($this->qualifiedName == "xmlns") { return NAMESPACE_ERR; } $new = new Attr(); $new->nodeName = $qualifiedName; $new->prefix = $prefix; --- 331,345 ---- } ! if (($namespaceURI != "http://www.w3.org/2000/xmlns/") && ($prefix == "xmlns")) { return NAMESPACE_ERR; } ! if ($qualifiedName == "xmlns") { return NAMESPACE_ERR; } $new = new Attr(); + $new->namespaceURI = $namespaceURI; $new->nodeName = $qualifiedName; $new->prefix = $prefix; *************** *** 303,306 **** --- 348,352 ---- $new->ownerElement = &$this; $new->ownerDocument = &$this->ownerDocument; + $new->specified = true; if (empty($this->attributes)) { *************** *** 320,323 **** --- 366,371 ---- */ function setAttributeNodeNS(&$newAttr) { + $newAttr->specified = true; + if (empty($this->attributes)) { $this->attributes = new NamedNodeMap(); Index: Entity.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Entity.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Entity.php 2002/01/25 22:18:18 1.1 --- Entity.php 2002/02/06 23:07:51 1.2 *************** *** 8,19 **** /** ! * Class representing the DOM Entity interface. Not supported yet. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Entity extends Node { ! // Sorry, not supported yet! } ?> --- 8,85 ---- /** ! * Class representing the DOM Entity interface. Not supported yet. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Entity extends Node { ! /** ! * If the entity is unparsed, notationName is the entity's notation ! * name. For parsed entities , this attribute is null.<br> ! * DOM-Level 1 ! * ! * @private ! * @type string ! */ ! var $notationName = null; ! ! /** ! * Die public identifier URL (URI) for this entity.<br> ! * DOM-Level 1 ! * ! * @private ! * @type string ! */ ! var $publicId; ! ! /** ! * Die system identifier URL (URI) for this entity.<br> ! * DOM-Level 1 ! * ! * @private ! * @type string ! */ ! var $systemId; ! ! /** ! * Constructor of the class. ! * ! * @public ! */ ! function Entity() { ! $this->Node(); ! $this->nodeType = ENTITY_NODE; ! } ! ! /** ! * Returns the notation name of this entity if unparsed. ! * ! * @public ! * @return string ! */ ! function getNotationName() { ! return $this->notationName; ! } ! ! /** ! * Returns the public identifier URL. ! * ! * @public ! * @return string ! */ ! function getPublicId() { ! return $this->publicId; ! } ! ! /** ! * Returns the system identifier URL. ! * ! * @public ! * @return string ! */ ! function getSystemId() { ! return $this->systemId; ! } } ?> Index: EntityReference.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/EntityReference.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** EntityReference.php 2002/01/25 22:18:18 1.1 --- EntityReference.php 2002/02/06 23:07:51 1.2 *************** *** 8,19 **** /** ! * Class representing the DOM EntityReference interface. Not supported yet. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class EntityReference extends Node { ! // Sorry, not supported yet. } ?> --- 8,27 ---- /** ! * Class representing the DOM EntityReference interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class EntityReference extends Node { ! /** ! * Constructor of the class. ! * ! * @public ! */ ! function EntityReference() { ! $this->Node(); ! $this->nodeType = ENTITY_REFERENCE_NODE; ! } } ?> Index: NamedNodeMap.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/NamedNodeMap.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** NamedNodeMap.php 2002/01/25 22:18:18 1.1 --- NamedNodeMap.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM NamedNodeMap interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class NamedNodeMap { /** --- 8,17 ---- /** ! * Class representing the DOM NamedNodeMap interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class NamedNodeMap { /** *************** *** 66,70 **** $count = 0; reset($this->nodes); ! while (list($key, $value) = each($this->nodes)) { if ($count == $index) { return $this->nodes[$key]; --- 66,70 ---- $count = 0; reset($this->nodes); ! foreach($this->nodes as $key => $value) { if ($count == $index) { return $this->nodes[$key]; *************** *** 112,116 **** } $this->nodes[$arg->nodeName] =& $arg; - return $save; } --- 112,115 ---- Index: Node.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Node.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Node.php 2002/01/26 13:20:01 1.2 --- Node.php 2002/02/06 23:07:51 1.3 *************** *** 13,80 **** /** ! * @const ATTRIBUTE_NODE ! */ define("ATTRIBUTE_NODE", 2); /** ! * @const TEXT_NODE ! */ define("TEXT_NODE", 3); /** ! * @const CDATA_SECTION_NODE ! */ define("CDATA_SECTION_NODE", 4); /** ! * @const ENTITY_REFERENCE_NODE ! */ define("ENTITY_REFERENCE_NODE", 5); /** ! * @const ENTITY_NODE ! */ define("ENTITY_NODE", 6); /** ! * @const PROCESSING_INSTRUCTION_NODE ! */ define("PROCESSING_INSTRUCTION_NODE", 7); /** ! * @const COMMENT_NODE ! */ define("COMMENT_NODE", 8); /** ! * @const DOCUMENT_NODE ! */ define("DOCUMENT_NODE", 9); /** ! * @const DOCUMENT_TYPE_NODE ! */ define("DOCUMENT_TYPE_NODE", 10); /** ! * @const DOCUMENT_FRAGMENT_NODE ! */ define("DOCUMENT_FRAGMENT_NODE", 11); /** ! * @const NOTATION_NODE ! */ define("NOTATION_NODE", 12); /** ! * Class representing the DOM Node interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Node { /** ! * MD5-Hash to compare two nodes. * * This ID is necessary to compare two nodes, because the operator == --- 13,80 ---- /** ! * @const ATTRIBUTE_NODE ! */ define("ATTRIBUTE_NODE", 2); /** ! * @const TEXT_NODE ! */ define("TEXT_NODE", 3); /** ! * @const CDATA_SECTION_NODE ! */ define("CDATA_SECTION_NODE", 4); /** ! * @const ENTITY_REFERENCE_NODE ! */ define("ENTITY_REFERENCE_NODE", 5); /** ! * @const ENTITY_NODE ! */ define("ENTITY_NODE", 6); /** ! * @const PROCESSING_INSTRUCTION_NODE ! */ define("PROCESSING_INSTRUCTION_NODE", 7); /** ! * @const COMMENT_NODE ! */ define("COMMENT_NODE", 8); /** ! * @const DOCUMENT_NODE ! */ define("DOCUMENT_NODE", 9); /** ! * @const DOCUMENT_TYPE_NODE ! */ define("DOCUMENT_TYPE_NODE", 10); /** ! * @const DOCUMENT_FRAGMENT_NODE ! */ define("DOCUMENT_FRAGMENT_NODE", 11); /** ! * @const NOTATION_NODE ! */ define("NOTATION_NODE", 12); /** ! * Class representing the DOM Node interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Node { /** ! * Identifier to compare two nodes. * * This ID is necessary to compare two nodes, because the operator == *************** *** 215,219 **** */ var $prefix; ! /** * Constructor of the class. --- 215,227 ---- */ var $prefix; ! ! /** ! * Mark this node as a readonly node. ! * ! * @private ! * @type boolean ! */ ! var $readonly = false; ! /** * Constructor of the class. *************** *** 404,408 **** $newChild->parentNode = &$this; - $newChild->ownerDocument = &$this->ownerDocument; unset($newChild->nextSibling); unset($newChild->previousSibling); --- 412,415 ---- *************** *** 429,437 **** --- 436,460 ---- * @public * @param $deep <code>boolean</code> + * @param $ownerDocument Set the ownerDocument of all cloned nodes. * @returns Node */ function &cloneNode($deep) { + return $this->cloneNode($deep, null); + } + + /** + * Internal function for cloning a node. + * + * @private + * @param $deep <code>boolean</code> + * @param $ownerDocument Set the ownerDocument of all cloned nodes. + * @returns Node + */ + function &cloneNode($deep, $ownerDocument = null) { $clone = $this; $clone->Node(); + if ($ownerDocument != null) { + $clone->ownerDocument = $ownerDocument; + } unset($clone->attributes); unset($clone->childNodes); *************** *** 448,452 **** for ($i = 0; $i < $this->attributes->getLength(); $i++) { $attr =& $this->attributes->item($i); ! $newAttr[$i] =& $attr->cloneNode(true); $newAttr[$i]->specified = true; if (!isset($oldAttr)) { --- 471,475 ---- for ($i = 0; $i < $this->attributes->getLength(); $i++) { $attr =& $this->attributes->item($i); ! $newAttr[$i] =& $attr->cloneNode(true, $ownerDocument); $newAttr[$i]->specified = true; if (!isset($oldAttr)) { *************** *** 469,473 **** for ($i = 0; $i < $this->childNodes->getLength(); $i++) { $child =& $this->childNodes->item($i); ! $newChild[$i] =& $child->cloneNode($deep); if (!isset($oldChild)) { $clone->firstChild = &$newChild[$i]; --- 492,496 ---- for ($i = 0; $i < $this->childNodes->getLength(); $i++) { $child =& $this->childNodes->item($i); ! $newChild[$i] =& $child->cloneNode($deep, $ownerDocument); if (!isset($oldChild)) { $clone->firstChild = &$newChild[$i]; *************** *** 652,656 **** $newChild->parentNode = &$this; - $newChild->ownerDocument = &$this->ownerDocument; if (isset($this->childNodes)) { --- 675,678 ---- *************** *** 813,829 **** $prevChild->nextSibling =& $child->nextSibling; $prevChild->appendData($child->getData()); ! unset($child); ! $child =& $prevChild; ! } ! } ! ! if ($child->nodeType == TEXT_NODE) { ! if ($child->getLength() == 0) { ! $prevChild->nextSibling =& $child->nextSibling; ! unset($child); $child =& $prevChild; } } ! $prevChild =& $child; $child =& $child->nextSibling; --- 835,851 ---- $prevChild->nextSibling =& $child->nextSibling; $prevChild->appendData($child->getData()); ! $this->removeChild($child); $child =& $prevChild; } } ! ! if ($child->nodeType == TEXT_NODE) { ! if ($child->getLength() == 0) { ! $prevChild->nextSibling =& $child->nextSibling; ! $this->removeChild($child); ! $child =& $prevChild; ! } ! } ! $prevChild =& $child; $child =& $child->nextSibling; *************** *** 844,848 **** return HIERARCHY_REQUEST_ERR; } ! if (($this->nodeType == PROCESSING_INSTRUCTION_NODE) || ($this->nodeType == COMMENT_NODE) || --- 866,874 ---- return HIERARCHY_REQUEST_ERR; } ! ! if ($this->readonly) { ! return NO_MODIFICATION_ALLOWED_ERR; ! } ! if (($this->nodeType == PROCESSING_INSTRUCTION_NODE) || ($this->nodeType == COMMENT_NODE) || Index: NodeList.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/NodeList.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** NodeList.php 2002/01/31 10:11:34 1.3 --- NodeList.php 2002/02/06 23:07:51 1.4 *************** *** 8,17 **** /** ! * Class representing the DOM NodeList interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class NodeList { /** --- 8,17 ---- /** ! * Class representing the DOM NodeList interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class NodeList { /** Index: ProcessingInstruction.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/ProcessingInstruction.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ProcessingInstruction.php 2002/01/25 22:18:18 1.1 --- ProcessingInstruction.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM ProcessingInstruction interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class ProcessingInstruction extends Node { /** --- 8,17 ---- /** ! * Class representing the DOM ProcessingInstruction interface. ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class ProcessingInstruction extends Node { /** Index: Text.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Text.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Text.php 2002/01/25 22:18:18 1.1 --- Text.php 2002/02/06 23:07:51 1.2 *************** *** 8,17 **** /** ! * Class representing the DOM Text interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Text extends CharacterData { /** --- 8,17 ---- /** ! * Class representing the DOM Text interface ! * ! * @package phpXD ! * @author Thomas Dohmke <th...@do...> ! * @version $Revision$ ! */ class Text extends CharacterData { /** |
From: Thomas D. <th...@us...> - 2002-02-06 22:57:42
|
Update of /cvsroot/phpxd/phpXD/include/dtd In directory usw-pr-cvs1:/tmp/cvs-serv30060/include/dtd Log Message: Directory /cvsroot/phpxd/phpXD/include/dtd added to the repository |
From: Thomas D. <th...@us...> - 2002-02-02 22:25:34
|
Update of /cvsroot/phpxd/phpXD.www/templates In directory usw-pr-cvs1:/tmp/cvs-serv27712/templates Modified Files: template.html Log Message: Index: template.html =================================================================== RCS file: /cvsroot/phpxd/phpXD.www/templates/template.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** template.html 2002/01/28 19:37:26 1.2 --- template.html 2002/02/02 22:25:31 1.3 *************** *** 1,6 **** ! <?xml version=\"1.0\"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <title> --- 1,6 ---- ! <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> |
From: Thomas D. <th...@us...> - 2002-01-31 10:11:37
|
Update of /cvsroot/phpxd/phpXD/include/dom In directory usw-pr-cvs1:/tmp/cvs-serv6974 Modified Files: NodeList.php Log Message: Index: NodeList.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/NodeList.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** NodeList.php 2002/01/30 22:34:59 1.2 --- NodeList.php 2002/01/31 10:11:34 1.3 *************** *** 99,103 **** } array_pop($this->nodes); ! $this->length++; } --- 99,103 ---- } array_pop($this->nodes); ! $this->length--; } |
From: Thomas D. <th...@us...> - 2002-01-30 22:35:02
|
Update of /cvsroot/phpxd/phpXD/include/dom In directory usw-pr-cvs1:/tmp/cvs-serv10390/dom Modified Files: NodeList.php Log Message: Index: NodeList.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/NodeList.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** NodeList.php 2002/01/25 22:18:18 1.1 --- NodeList.php 2002/01/30 22:34:59 1.2 *************** *** 99,102 **** --- 99,103 ---- } array_pop($this->nodes); + $this->length++; } |
From: Thomas D. <th...@us...> - 2002-01-29 20:57:30
|
Update of /cvsroot/phpxd/phpXD/samples In directory usw-pr-cvs1:/tmp/cvs-serv3208/samples Modified Files: sample.php sample.xml Log Message: Index: sample.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/samples/sample.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** sample.php 2002/01/26 13:20:01 1.2 --- sample.php 2002/01/29 20:57:27 1.3 *************** *** 43,47 **** if ($dom->nodeType == COMMENT_NODE) { echo $space; ! echo "<span style=\"color:#009900\">"; echo "<!--"; $output = htmlspecialchars($dom->getData()); --- 43,47 ---- if ($dom->nodeType == COMMENT_NODE) { echo $space; ! echo "<span style=\"color:#990099\">"; echo "<!--"; $output = htmlspecialchars($dom->getData()); *************** *** 64,86 **** if ($dom->nodeType == DOCUMENT_NODE) { echo "<pre>"; if (!empty($dom->doctype)) { if (!empty($dom->doctype->publicId) && !empty($dom->doctype->systemId)) { echo "<!DOCTYPE ".$dom->doctype->name." PUBLIC ". ! $dom->doctype->systemId." ".$dom->doctype->publicId.">\n"; } else { if (!empty($dom->doctype->systemId)) { echo "<!DOCTYPE ".$dom->doctype->name." SYSTEM ". ! $dom->doctype->systemId.">\n"; } else { ! $output = $dom->doctype->internalSubset; ! $output = str_replace("<", "<", $output); ! $output = str_replace(" > ", "><br />", $output); ! $output = str_replace("[ ", "[<br />", $output); ! $output = str_replace("\n", "<br />", $output); ! echo $output."<br />"; ! } } } if ($dom->hasChildNodes()) { --- 64,93 ---- if ($dom->nodeType == DOCUMENT_NODE) { echo "<pre>"; + echo "<span style=\"color:#009900\">"; + echo "<?xml version=\"1.0\"?><br />"; + echo "<span style=\"color:#009900\">"; if (!empty($dom->doctype)) { if (!empty($dom->doctype->publicId) && !empty($dom->doctype->systemId)) { echo "<!DOCTYPE ".$dom->doctype->name." PUBLIC ". ! $dom->doctype->publicId." ".$dom->doctype->systemId; } else { if (!empty($dom->doctype->systemId)) { echo "<!DOCTYPE ".$dom->doctype->name." SYSTEM ". ! $dom->doctype->systemId; } else { ! echo "<!DOCTYPE ".$dom->doctype->name; ! } ! } ! if (!empty($dom->doctype->internalSubset)) { ! $output = $dom->doctype->internalSubset; ! $output = str_replace("<", "<", $output); ! $output = str_replace(" > ", "><br />", $output); ! $output = str_replace("[ ", "[<br />", $output); ! $output = str_replace("\n", "<br />", $output); ! echo " [".$output."]"; } + echo ">\n"; } if ($dom->hasChildNodes()) { *************** *** 119,122 **** --- 126,130 ---- } if ($dom->nodeType == TEXT_NODE) { + echo "<span style=\"color:#000000\">"; if (trim($dom->getData()) != "") { echo $space; *************** *** 126,133 **** echo "<br />"; } } if ($dom->nodeType == PROCESSING_INSTRUCTION_NODE) { echo $space; ! echo "<span style=\"color:#990099\">"; echo "<?".$dom->getTarget()." "; $output = htmlspecialchars($dom->getData()); --- 134,142 ---- echo "<br />"; } + echo "</span>"; } if ($dom->nodeType == PROCESSING_INSTRUCTION_NODE) { echo $space; ! echo "<span style=\"color:#999900\">"; echo "<?".$dom->getTarget()." "; $output = htmlspecialchars($dom->getData()); *************** *** 154,157 **** $parser = new DOMParser(); echoTree($parser->parseFile("sample.xml")); - /*echoTree($parser->parse("<?xml version=\"1.0\"?><hallo>Thomas</hallo>"));*/ ?> --- 163,165 ---- Index: sample.xml =================================================================== RCS file: /cvsroot/phpxd/phpXD/samples/sample.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** sample.xml 2002/01/26 13:20:01 1.2 --- sample.xml 2002/01/29 20:57:27 1.3 *************** *** 1,4 **** <?xml version="1.0"?> - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <hello> This is a phpXD sample dokument. --- 1,3 ---- |
From: Thomas D. <th...@us...> - 2002-01-29 20:57:05
|
Update of /cvsroot/phpxd/phpXD/include/parser In directory usw-pr-cvs1:/tmp/cvs-serv2994/include/parser Modified Files: DOMParser.php DTDParser.php Log Message: Work on improved dtd support. Index: DOMParser.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/parser/DOMParser.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** DOMParser.php 2002/01/26 13:20:01 1.3 --- DOMParser.php 2002/01/29 20:57:01 1.4 *************** *** 70,74 **** */ var $DTDParser = null; ! var $DTDTokens = ""; /** --- 70,75 ---- */ var $DTDParser = null; ! var $DTDTokens; ! var $DTDString = ""; /** *************** *** 268,276 **** } else { ! $text = str_replace("\t", " ", $text); ! $text = str_replace("\n", " ", $text); ! $text = str_replace("\r", " ", $text); ! $text = str_replace(" ", " ", $text); ! $text = preg_replace("/\ +/", " ", $text); $this->lastNode =& $this->currentNode->appendChild( --- 269,273 ---- } else { ! $text = str_replace("\r", "", $text); $this->lastNode =& $this->currentNode->appendChild( *************** *** 304,311 **** */ function handleDefault($parser, $data) { ! $data = trim($data); ! if ($data == "<!DOCTYPE") { ! $this->DTDTokens[] = $data; $this->parseDTD = true; return true; --- 301,309 ---- */ function handleDefault($parser, $data) { ! $data2 = trim($data); ! if ($data2 == "<!DOCTYPE") { ! $this->DTDTokens[] = $data2; ! $this->DTDString .= $data; $this->parseDTD = true; return true; *************** *** 313,352 **** if ($this->parseDTD) { ! if ($data != "") { $this->DTDTokens[] = $data; } ! if ($data == "[") { $this->parseInternalDTD = true; } ! if ($data == "]") { $this->parseInternalDTD = false; } ! if (($data == ">") && (!$this->parseInternalDTD)) { $this->parseDTD = false; ! // $this->DTDParser->parseTokens($this->DTDTokens); } return true; } ! if ($data == "<![CDATA[") { $this->parseCData = true; return true; } ! if ($data == "]]>" && $this->parseCData) { $this->parseCData = false; return true; } ! if (!(strpos($data, "<!--") === false)) { ! $data = str_replace("<!--", "", $data); ! $data = str_replace("-->", "", $data); if (!isset($this->document->documentElement)) { $this->document->appendChild( ! $this->document->createComment($data)); } else { $this->lastNode =& $this->currentNode->appendChild( ! $this->document->createComment($data)); } return true; --- 311,373 ---- if ($this->parseDTD) { ! if ($data2 != "") { $this->DTDTokens[] = $data; } ! $this->DTDString .= $data; ! if ($data2 == "[") { $this->parseInternalDTD = true; } ! if ($data2 == "]") { $this->parseInternalDTD = false; } ! if (($data2 == ">") && (!$this->parseInternalDTD)) { $this->parseDTD = false; ! ! $doctype = new DocumentType(); ! $doctype->name = $this->DTDTokens[1]; ! $doctype->publicId = ""; ! $doctype->systemId = ""; ! $doctype->internalSubset = ""; ! $offset = 2; ! if ($this->DTDTokens[2] == "PUBLIC") { ! $doctype->publicId = $this->DTDTokens[3]; ! $doctype->systemId = $this->DTDTokens[4]; ! $offset = 5; ! } ! if ($this->DTDTokens[2] == "SYSTEM") { ! $doctype->systemId = $this->DTDTokens[3]; ! $offset = 4; ! } ! if ($this->DTDTokens[$offset] == "[") { ! $subset = substr($this->DTDString, ! strpos($this->DTDString, "[") + 1); ! $subset = substr($subset, 0, strrpos($subset, "]")); ! $doctype->internalSubset = $subset; ! } ! $this->document->doctype =& $doctype; } return true; } ! if ($data2 == "<![CDATA[") { $this->parseCData = true; return true; } ! if ($data2 == "]]>" && $this->parseCData) { $this->parseCData = false; return true; } ! if (!(strpos($data2, "<!--") === false)) { ! $data2 = str_replace("<!--", "", $data2); ! $data2 = str_replace("-->", "", $data2); if (!isset($this->document->documentElement)) { $this->document->appendChild( ! $this->document->createComment($data2)); } else { $this->lastNode =& $this->currentNode->appendChild( ! $this->document->createComment($data2)); } return true; Index: DTDParser.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/parser/DTDParser.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** DTDParser.php 2002/01/29 17:47:12 1.3 --- DTDParser.php 2002/01/29 20:57:01 1.4 *************** *** 15,18 **** --- 15,25 ---- */ class DTDParser { + // public + var $elements; + var $attLists; + var $entities; + var $notations; + + // private var $parseDTD = false; var $parseInternalDTD = false; *************** *** 20,26 **** var $parameterEntities; var $parameterEntitiesDefined; ! var $elements; var $currentElement; ! var $currentAttlist; function parse($str, $dtdonly = true) { --- 27,35 ---- var $parameterEntities; var $parameterEntitiesDefined; ! ! // private var $currentElement; ! var $currentAttList; ! var $currentEntity; function parse($str, $dtdonly = true) { *************** *** 34,37 **** --- 43,47 ---- while (preg_match('=(.*)\%([a-z,A-Z,0-9,\.]*);(.*)$=sU', $str, $ent)) { $str = preg_replace('=<!--.*-->=sU', '', $str); + // <!ENTITY % name PUBLIC publicId systemid> while (preg_match('=(.*)<!ENTITY[ ,\n,\r,\t]*\%[ ,\n,\r,\t]*'. '([a-z,A-Z,0-9,\.]*)[ ,\n,\r,\t]*PUBLIC'. *************** *** 39,69 **** '[ ,\n,\r,\t]*"([a-z,A-Z,0-9,\.,\-,_,/]*)"'. '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { ! if ($this->file_exists($this->currentDir."/".$ent[4])) { if (isset($this->parameterEntitiesDefined[$ent[2]]) && ! ($this->parameterEntitiesDefined[$ent[2]] == true)) { // redefined parameter entity => replace current string foreach ($this->parameterEntities as $entref => $body) { $ent[1] = str_replace("%".$entref.";", $body, $ent[1]); } } ! $this->parameterEntities[$ent[2]] = ! preg_replace('=<!--.*-->=sU', '', ! implode("", file($this->currentDir."/".$ent[4]))); ! $this->parameterEntitiesDefined[$ent[2]] = true; ! } $str = $ent[1].$ent[5]; } while (preg_match('=(.*)<!ENTITY[ ,\n,\r,\t]*\%[ ,\n,\r,\t]*'. '([a-z,A-Z,0-9,\.]*)[ ,\n,\r,\t]*"(.*)"'. '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { ! if (isset($this->parameterEntitiesDefined[$ent[2]]) && ! ($this->parameterEntitiesDefined[$ent[2]] == true)) { ! // redefined parameter entity => replace current string ! foreach ($this->parameterEntities as $entref => $body) { ! $ent[1] = str_replace("%".$entref.";", $body, $ent[1]); } } - $this->parameterEntities[$ent[2]] = $ent[3]; - $this->parameterEntitiesDefined[$ent[2]] = true; $str = $ent[1].$ent[4]; } --- 49,111 ---- '[ ,\n,\r,\t]*"([a-z,A-Z,0-9,\.,\-,_,/]*)"'. '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { ! if (!isset($this->parameterEntitiesDefined[$ent[2]]) || ! ($this->parameterEntitiesDefined[$ent[2]] < 2)) { if (isset($this->parameterEntitiesDefined[$ent[2]]) && ! ($this->parameterEntitiesDefined[$ent[2]] == 1)) { // redefined parameter entity => replace current string foreach ($this->parameterEntities as $entref => $body) { $ent[1] = str_replace("%".$entref.";", $body, $ent[1]); } + } + $filename = $this->publicId2Filename($ent[3], $ent[4]); + if ($this->file_exists($filename)) { + $this->parameterEntities[$ent[2]] = + preg_replace('=<!--.*-->=sU', '', implode("", + file($filename))); + $this->parameterEntitiesDefined[$ent[2]] = 1; } ! } $str = $ent[1].$ent[5]; } + // <!ENTITY % name SYSTEM systemid> + while (preg_match('=(.*)<!ENTITY[ ,\n,\r,\t]*\%[ ,\n,\r,\t]*'. + '([a-z,A-Z,0-9,\.]*)[ ,\n,\r,\t]*SYSTEM'. + '[ ,\n,\r,\t]*"([a-z,A-Z,0-9,\.,\-,_,/]*)"'. + '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { + if ($this->file_exists($this->currentDir."/".$ent[4])) { + if (!isset($this->parameterEntitiesDefined[$ent[2]]) || + ($this->parameterEntitiesDefined[$ent[2]] < 2)) { + if (isset($this->parameterEntitiesDefined[$ent[2]]) && + ($this->parameterEntitiesDefined[$ent[2]] == 1)) { + // redefined parameter entity => replace current string + foreach ($this->parameterEntities as $entref => $body) { + $ent[1] = str_replace("%".$entref.";", $body, $ent[1]); + } + } + $this->parameterEntities[$ent[2]] = + preg_replace('=<!--.*-->=sU', '', + implode("", file($this->currentDir."/". + $ent[3]))); + $this->parameterEntitiesDefined[$ent[2]] = 1; + } + } + $str = $ent[1].$ent[4]; + } + // <!ENTITY % name body> while (preg_match('=(.*)<!ENTITY[ ,\n,\r,\t]*\%[ ,\n,\r,\t]*'. '([a-z,A-Z,0-9,\.]*)[ ,\n,\r,\t]*"(.*)"'. '[ ,\n,\r,\t]*>(.*)$=sU', $str, $ent)) { ! if (!isset($this->parameterEntitiesDefined[$ent[2]]) || ! ($this->parameterEntitiesDefined[$ent[2]] < 2)) { ! if (isset($this->parameterEntitiesDefined[$ent[2]]) && ! ($this->parameterEntitiesDefined[$ent[2]] == 1)) { ! // redefined parameter entity => replace current string ! foreach ($this->parameterEntities as $entref => $body) { ! $ent[1] = str_replace("%".$entref.";", $body, $ent[1]); ! } } + $this->parameterEntities[$ent[2]] = $ent[3]; + $this->parameterEntitiesDefined[$ent[2]] = 1; } $str = $ent[1].$ent[4]; } *************** *** 147,158 **** case "<!ELEMENT": { $this->parseElement($tokens, $offset + 1); ! $currentElement = $this->currentElement; ! $currentElement->children =& $this->currentElement->children; ! echo $this->currentElement->tagName." -- "; ! unset($this->currentElement); ! if ($currentElement->children != null) { ! echo $currentElement->children->toString()."<br>"; ! } ! $this->elements[] =& $currentElement; $offset = $this->skipToGt($tokens, $offset + 1); break; --- 189,196 ---- case "<!ELEMENT": { $this->parseElement($tokens, $offset + 1); ! // copy element ! $this->elements[$this->currentElement->tagName] = $this->currentElement; ! // $this->elements[$this->currentElement->tagName]->children =& ! // $this->currentElement->children; $offset = $this->skipToGt($tokens, $offset + 1); break; *************** *** 161,171 **** --- 199,213 ---- $this->parseAttList($tokens, $offset + 1); $offset = $this->skipToGt($tokens, $offset + 1); + $this->attLists[$this->currentAttList->element] = + $this->currentAttList; break; } case "<!ENTITY": { + $this->parseEntity($tokens, $offset + 1); $offset = $this->skipToGt($tokens, $offset + 1); break; } case "<!NOTATION": { + $this->parseNotation($tokens, $offset + 1); $offset = $this->skipToGt($tokens, $offset + 1); break; *************** *** 196,209 **** function parseExternalPublicDTD($tokens, $offset) { ! $tokenPublicID = $this->removeQuotes($tokens[$offset]); ! $tokenURI = $this->removeQuotes($tokens[$offset + 1]); ! switch ($tokenPublicID) { ! case "-//W3C//DTD XHTML 1.0 Strict//EN": { ! $DTDParser = new DTDParser(); ! // $DTDParser->parseFile("http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"); ! $DTDParser->parseFile("../xhtml1-strict.dtd", true); ! break; ! } } // merge definitions from $DTDParser with this $token = $tokens[$offset + 2]; --- 238,259 ---- function parseExternalPublicDTD($tokens, $offset) { ! $publicId = $this->removeQuotes($tokens[$offset]); ! $systemId = $this->removeQuotes($tokens[$offset + 1]); ! $filename = $this->publicId2Filename($publicId, $systemId); ! $DTDParser = new DTDParser(); ! $DTDParser->parameterEntities =& $this->parameterEntities; ! if (is_array($this->parameterEntitiesDefined)) { ! foreach ($this->parameterEntitiesDefined as $key => $value) { ! // internal parameter entities overwrite external ! $DTDParser->parameterEntitiesDefined[$key] = 2; ! } } + $DTDParser->attLists =& $this->attLists; + $DTDParser->entities =& $this->entities; + $DTDParser->elements =& $this->elements; + $DTDParser->notations =& $this->notations; + $DTDParser->parseFile($filename, true); + + // merge definitions from $DTDParser with this $token = $tokens[$offset + 2]; *************** *** 216,219 **** --- 266,278 ---- $name = $tokens[$offset]; $this->currentElement = new DTDElement($name); + if ($tokens[$offset + 1] == "ANY") { + $this->currentElement->children = + new DTDElementChild("", "", true); + return; + } + if ($tokens[$offset + 1] == "EMPTY") { + $this->currentElement->children = null; + return; + } $this->parseElementChilds($tokens, $offset + 1); } *************** *** 291,312 **** function parseElementChild($tokens, $offset) { $token = $tokens[$offset]; - if ($token == "ANY") { - $this->currentElement->children = - new DTDElementChild("", "", true); - return; - } - if ($token == "EMPTY") { - $this->currentElement->children = null; - return; - } if ($token == "#PCDATA") { if ($this->currentElement->children == null) { $this->currentElement->children = ! new DTDElementChild("", "", true, true); return; } else { $this->currentElement->children-> ! appendChild(new DTDElementChild("", "", true, true)); return; } --- 350,362 ---- function parseElementChild($tokens, $offset) { $token = $tokens[$offset]; if ($token == "#PCDATA") { if ($this->currentElement->children == null) { $this->currentElement->children = ! new DTDElementChild("", "", false, true); return; } else { $this->currentElement->children-> ! appendChild(new DTDElementChild("", "", false, true)); return; } *************** *** 334,338 **** function parseAttList($tokens, $offset) { $name = $tokens[$offset]; ! $this->currentAttlist = new DTDAttList($name); $this->parseAttributes($tokens, $offset + 1); } --- 384,388 ---- function parseAttList($tokens, $offset) { $name = $tokens[$offset]; ! $this->currentAttList = new DTDAttList($name); $this->parseAttributes($tokens, $offset + 1); } *************** *** 341,345 **** while ($tokens[$offset] != ">") { $name = $tokens[$offset]; ! echo $name; $type = $tokens[$offset + 1]; if ($type == "(") { --- 391,399 ---- while ($tokens[$offset] != ">") { $name = $tokens[$offset]; ! ! // TODO: check xml:space and xml:lang attributes for ! // correct implementation ! // ... ! $type = $tokens[$offset + 1]; if ($type == "(") { *************** *** 360,375 **** $default = $tokens[$offset + 1]; $attribute->default = $default; ! if ($default == "#FIXED") { ! $attribute->defaultValue = $this->removeQuotes($tokens[$offset + 2]); ! $offset++; } $offset += 2; } } ! function removeQuotes($str) { ! if (($str[0] == "\"") && ($str[strlen($str) - 1] == "\"")) { return substr($str, 1, strlen($str) - 2); } --- 414,487 ---- $default = $tokens[$offset + 1]; $attribute->default = $default; ! if (($default != "#IMPLIED") && ! ($default != "#REQUIRED")) { ! if ($default == "#FIXED") { ! $attribute->defaultValue = $this->removeQuotes($tokens[$offset + 2]); ! $offset++; ! } ! else { ! $attribute->defaultValue = $this->removeQuotes($tokens[$offset + 1]); ! } } $offset += 2; + $this->currentAttList->attributes[$attribute->name] = $attribute; } } ! function parseEntity($tokens, $offset) { ! $name = $tokens[$offset]; ! $entity = new DTDEntity($name); ! $entity->ndata = false; ! $body = $tokens[$offset + 1]; ! if (($body == "SYSTEM") || ($body == "PUBLIC")) { ! if ($body == "SYSTEM") { ! $entity->systemId = $tokens[$offset + 2]; ! $offset = $offset + 3; ! } ! else { ! $entity->publicId = $tokens[$offset + 2]; ! $entity->systemId = $tokens[$offset + 3]; ! $offset = $offset + 4; ! } ! if ($tokens[$offset] == "NDATA") { ! $entity->ndata = true; ! $entity->notation = $tokens[$offset + 1]; ! } ! } ! else { ! $entity->body = $this->removeQuotes($body); ! } ! $this->entities[$name] =& $entity; ! } + function parseNotation($tokens, $offset) { + $name = $tokens[$offset]; + $notation = new DTDNotation($name); + $entity->publicId = ""; + $entity->systemId = ""; + $body = $tokens[$offset + 1]; + if ($body == "SYSTEM") { + $notation->systemId = $tokens[$offset + 2]; + } + if ($body == "PUBLIC") { + $notation->publicId = $tokens[$offset + 2]; + if ($tokens[$offset + 3] != ">") { + $notation->systemId = $tokens[$offset + 3]; + } + } + $this->notations[$name] =& $notation; + } + + function publicId2Filename($publicId, $systemId) { + // TODO: add all known publicId and systemIds + if ($publicId == "-//W3C//DTD XHTML 1.0 Strict//EN") { + return "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; + } + return $systemId; + } + function removeQuotes($str) { ! if ((($str[0] == "\"") && ($str[strlen($str) - 1] == "\"")) || ! (($str[0] == "\'") && ($str[strlen($str) - 1] == "\'"))) { return substr($str, 1, strlen($str) - 2); } *************** *** 440,455 **** class DTDNode { } - class DTDElement extends DTDNode { - var $tagName; - var $children; - - function DTDElement($tagName) { - $this->tagName = $tagName; - $this->children = null; - } - } - class DTDAttList extends DTDNode { var $attributes; --- 552,558 ---- class DTDNode { + // abstract class for all DTD classes } class DTDAttList extends DTDNode { var $attributes; *************** *** 474,477 **** --- 577,613 ---- } + class DTDEntity extends DTDNode { + var $name; + var $body; + var $publicId; + var $systemId; + var $ndata; + var $notation; + + function DTDEntity($name) { + $this->name = $name; + } + } + + class DTDNotation extends DTDNode { + var $name; + var $publicId; + var $systemId; + + function DTDNotation($name) { + $this->name = $name; + } + } + + class DTDElement extends DTDNode { + var $tagName; + var $children; + + function DTDElement($tagName) { + $this->tagName = $tagName; + $this->children = null; + } + } + class DTDElementChild extends DTDNode { var $number = ""; *************** *** 507,511 **** } if ($this->pcdata) { ! return "#PCDAZA"; } return $this->tagName.$this->number; --- 643,647 ---- } if ($this->pcdata) { ! return "#PCDATA"; } return $this->tagName.$this->number; |
From: Thomas D. <th...@us...> - 2002-01-29 20:57:05
|
Update of /cvsroot/phpxd/phpXD/include/dom In directory usw-pr-cvs1:/tmp/cvs-serv2994/include/dom Modified Files: Document.php Log Message: Work on improved dtd support. Index: Document.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/include/dom/Document.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Document.php 2002/01/25 22:18:18 1.1 --- Document.php 2002/01/29 20:57:01 1.2 *************** *** 53,56 **** --- 53,57 ---- $this->nodeType = DOCUMENT_NODE; $this->nodeName = "#document"; + $this->implementation = new DOMImplementation(); } |