Changeset 153 for trunk/src/helpers/xml.c
- Timestamp:
- Apr 14, 2002, 1:42:05 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/xml.c
r147 r153 39 39 * was supposed to be a C-only interface, we cannot implement 40 40 * inheritance at the language level. Instead, each XML document 41 * is broken up into a tree of node structures only (see _DOMNODE),41 * is broken up into a tree of node structures only (see DOMNODE), 42 42 * each of which has a special type. The W3C DOM allows this 43 43 * (and calls this the "flattened" view, as opposed to the … … 55 55 * (internal subset). 56 56 * 57 * -- Not all node types are implemented. See _DOMNODE for57 * -- Not all node types are implemented. See DOMNODE for 58 58 * the supported types. 59 59 * … … 145 145 146 146 /* 147 *@@category: Helpers\ C helpers\XML147 *@@category: Helpers\XML 148 148 * see xml.c. 149 149 */ 150 150 151 151 /* 152 *@@category: Helpers\ C helpers\XML\Document Object Model (DOM)152 *@@category: Helpers\XML\Document Object Model (DOM) 153 153 * see xml.c. 154 154 */ … … 2650 2650 /* 2651 2651 *@@ xmlFindElementDecl: 2652 * returns the _CMELEMENTDECLNODE for the element2652 * returns the CMELEMENTDECLNODE for the element 2653 2653 * with the specified name or NULL if there's none. 2654 2654 * … … 2678 2678 /* 2679 2679 *@@ xmlFindAttribDeclBase: 2680 * returns the _CMATTRIBUTEDECLBASE for the specified2680 * returns the CMATTRIBUTEDECLBASE for the specified 2681 2681 * element name, or NULL if none exists. 2682 2682 * … … 2708 2708 /* 2709 2709 *@@ xmlFindAttribDecl: 2710 * returns the _CMATTRIBUTEDEDECL for the specified2710 * returns the CMATTRIBUTEDEDECL for the specified 2711 2711 * element and attribute name, or NULL if none exists. 2712 2712 * … … 2766 2766 *@@ xmlGetFirstChild: 2767 2767 * returns the first child node of pDomNode. 2768 * See _DOMNODE for what a "child" can be for the2768 * See DOMNODE for what a "child" can be for the 2769 2769 * various node types. 2770 2770 * … … 2784 2784 *@@ xmlGetLastChild: 2785 2785 * returns the last child node of pDomNode. 2786 * See _DOMNODE for what a "child" can be for the2786 * See DOMNODE for what a "child" can be for the 2787 2787 * various node types. 2788 2788 * … … 2827 2827 /* 2828 2828 *@@ xmlGetElementsByTagName: 2829 * returns a linked list of _DOMNODE nodes which2829 * returns a linked list of DOMNODE nodes which 2830 2830 * match the specified element name. The special name 2831 2831 * "*" matches all elements. … … 2860 2860 if ( (pDomNodeThis = (PDOMNODE)pNode->pItemData) 2861 2861 && (pDomNodeThis->NodeBase.ulNodeType == DOMNODE_ELEMENT) 2862 && ( fFindAll2863 || (!strcmp(pcszName, pDomNodeThis->NodeBase.strNodeName.psz))2864 )2862 && ( (fFindAll) 2863 || (!strcmp(pcszName, pDomNodeThis->NodeBase.strNodeName.psz)) 2864 ) 2865 2865 ) 2866 2866 { … … 2899 2899 // note, cheap trick: no malloc here, but we need 2900 2900 // an XSTRING for treeFind 2901 pAttrNode = (PDOMNODE)treeFind(pElement->AttributesMap, 2902 (ULONG)&str, 2903 CompareXStrings); 2904 if (pAttrNode) 2901 if (pAttrNode = (PDOMNODE)treeFind(pElement->AttributesMap, 2902 (ULONG)&str, 2903 CompareXStrings)) 2905 2904 return (pAttrNode->pstrNodeValue); 2906 2905
Note:
See TracChangeset
for help on using the changeset viewer.