Ejemplo n.º 1
0
        public XMLTag[] GetChilds()
        {
            int cnt = GetChildCount();

            XMLTag[] childs = new XMLTag[cnt];
            for (int idx = 0; idx < cnt; idx++)
            {
                childs[idx] = GetChild(idx);
            }
            return(childs);
        }
Ejemplo n.º 2
0
 public void RemoveChild(XMLTag child)
 {
     CPP.Add("$q->removeChild(*$check(child)->$q);");
 }
Ejemplo n.º 3
0
 public XMLTag InsertChild(int index, XMLTag child)
 {
     CPP.Add("$q->insertBefore(*$check(child)->$q, $q->childNodes().at(index));");
     return((XMLTag)CPP.ReturnObject("child"));
 }
Ejemplo n.º 4
0
 public XMLTag AddChild(XMLTag child)
 {
     CPP.Add("$q->appendChild(*$check(child)->$q);");
     return((XMLTag)CPP.ReturnObject("child"));
 }
Ejemplo n.º 5
0
 public XMLAttr(XMLTag tag, int index)
 {
     CPP.Add("QString name = $check(tag)->$q->attributes().item(index).nodeName();");
     CPP.Add("$q = new QDomAttr($check(tag)->$q->attributeNode(name));");
 }
Ejemplo n.º 6
0
 public XMLAttr(XMLTag tag, String name)
 {
     CPP.Add("$q = new QDomAttr($check(tag)->$q->attributeNode($check(name)->qstring()));");
 }