Ignore:
Timestamp:
Apr 14, 2002, 1:42:05 AM (23 years ago)
Author:
umoeller
Message:

Lots of changes from the last three weeks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/xml.c

    r147 r153  
    3939 *      was supposed to be a C-only interface, we cannot implement
    4040 *      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),
    4242 *      each of which has a special type. The W3C DOM allows this
    4343 *      (and calls this the "flattened" view, as opposed to the
     
    5555 *          (internal subset).
    5656 *
    57  *      --  Not all node types are implemented. See _DOMNODE for
     57 *      --  Not all node types are implemented. See DOMNODE for
    5858 *          the supported types.
    5959 *
     
    145145
    146146/*
    147  *@@category: Helpers\C helpers\XML
     147 *@@category: Helpers\XML
    148148 *      see xml.c.
    149149 */
    150150
    151151/*
    152  *@@category: Helpers\C helpers\XML\Document Object Model (DOM)
     152 *@@category: Helpers\XML\Document Object Model (DOM)
    153153 *      see xml.c.
    154154 */
     
    26502650/*
    26512651 *@@ xmlFindElementDecl:
    2652  *      returns the _CMELEMENTDECLNODE for the element
     2652 *      returns the CMELEMENTDECLNODE for the element
    26532653 *      with the specified name or NULL if there's none.
    26542654 *
     
    26782678/*
    26792679 *@@ xmlFindAttribDeclBase:
    2680  *      returns the _CMATTRIBUTEDECLBASE for the specified
     2680 *      returns the CMATTRIBUTEDECLBASE for the specified
    26812681 *      element name, or NULL if none exists.
    26822682 *
     
    27082708/*
    27092709 *@@ xmlFindAttribDecl:
    2710  *      returns the _CMATTRIBUTEDEDECL for the specified
     2710 *      returns the CMATTRIBUTEDEDECL for the specified
    27112711 *      element and attribute name, or NULL if none exists.
    27122712 *
     
    27662766 *@@ xmlGetFirstChild:
    27672767 *      returns the first child node of pDomNode.
    2768  *      See _DOMNODE for what a "child" can be for the
     2768 *      See DOMNODE for what a "child" can be for the
    27692769 *      various node types.
    27702770 *
     
    27842784 *@@ xmlGetLastChild:
    27852785 *      returns the last child node of pDomNode.
    2786  *      See _DOMNODE for what a "child" can be for the
     2786 *      See DOMNODE for what a "child" can be for the
    27872787 *      various node types.
    27882788 *
     
    28272827/*
    28282828 *@@ xmlGetElementsByTagName:
    2829  *      returns a linked list of _DOMNODE nodes which
     2829 *      returns a linked list of DOMNODE nodes which
    28302830 *      match the specified element name. The special name
    28312831 *      "*" matches all elements.
     
    28602860            if (    (pDomNodeThis = (PDOMNODE)pNode->pItemData)
    28612861                 && (pDomNodeThis->NodeBase.ulNodeType == DOMNODE_ELEMENT)
    2862                  && (   fFindAll
    2863                      || (!strcmp(pcszName, pDomNodeThis->NodeBase.strNodeName.psz))
    2864                    )
     2862                 && (    (fFindAll)
     2863                      || (!strcmp(pcszName, pDomNodeThis->NodeBase.strNodeName.psz))
     2864                    )
    28652865               )
    28662866            {
     
    28992899    // note, cheap trick: no malloc here, but we need
    29002900    // 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))
    29052904        return (pAttrNode->pstrNodeValue);
    29062905
Note: See TracChangeset for help on using the changeset viewer.