summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a0cdd8)
raw | patch | inline | side by side (parent: 5a0cdd8)
author | daleharvey <daleharvey@users.sourceforge.net> | |
Tue, 1 Aug 2006 14:23:19 +0000 (14:23 +0000) | ||
committer | daleharvey <daleharvey@users.sourceforge.net> | |
Tue, 1 Aug 2006 14:23:19 +0000 (14:23 +0000) |
src/pedro/pedrodom.h | patch | blob | history |
diff --git a/src/pedro/pedrodom.h b/src/pedro/pedrodom.h
index b9fb98b92faaee8fad161b80b3a118947e654214..cc9a322f983f93842a5116daa69db3a67042cdea 100644 (file)
--- a/src/pedro/pedrodom.h
+++ b/src/pedro/pedrodom.h
Element *getParent()
{ return parent; }
+ Element *getFirstChild()
+ { return (children.size() == 0) ? NULL : children[0]; }
+
std::vector<Element *> getChildren()
{ return children; }
void addNamespace(const DOMString &prefix, const DOMString &namespaceURI);
+ bool exists(const DOMString &name)
+ { return (findElements(name).size() > 0); }
/**
* Prettyprint an XML tree to an output stream. Elements are indented