xmlNode auf xmlElement casten

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • andrej

    #1

    xmlNode auf xmlElement casten

    hi,

    ich habe eine anwendung, welche ein xml document erstellt.

    um festzustellen, ob ein element bereits vorhanden ist,
    verwende ich die funktion

    selectsinglenod e( ....)

    diese funktion liefert mir ein element des typs node.

    das xmlNode kann aber nicht wirklich viel. z.b Attribute
    anhängen...

    kann ich das xmlNode auf xmlElement caste?

    xmlNode myNode;
    xmlElement myElement;

    myNode=myDoc.Se lectSingleNode( ...);
    myElement=(xmlE lement)myNode;

    ist das möglich, oder gibt es eine möglichkeit attribute
    an ein xmlNode anzuhängen?

    danke
  • Michael Mayer

    #2
    Re: xmlNode auf xmlElement casten

    ich spreche keine duetsche. (I speak no German). And I know very
    little XML, so here's Google's translation for anybody who can assist
    andrej... (Of course, he'd probably prefer a German response)...

    I have an application, which provides xml a document. in order to
    determine, whether an element is already present, I use the function
    selectsinglenod e(....) this function supplies an element of the type
    node to me with. the xmlNode cannot attach however really much e.g.
    attributes... can I do the xmlNode on xmlElement caste?

    xmlNode myNode;
    xmlElement myElement;
    myNode=myDoc.Se lectSingleNode( ...);
    myElement=(xmlE lement)myNode;

    is that possible, or does give it a possibility of attributes to a
    xmlNode to attach? thanks

    "andrej" <andrej@gmx.a t> wrote in message
    news:003101c356 c2$d38f3d90$a60 1280a@phx.gbl.. .
    hi,

    ich habe eine anwendung, welche ein xml document erstellt.

    um festzustellen, ob ein element bereits vorhanden ist,
    verwende ich die funktion

    selectsinglenod e( ....)

    diese funktion liefert mir ein element des typs node.

    das xmlNode kann aber nicht wirklich viel. z.b Attribute
    anhängen...

    kann ich das xmlNode auf xmlElement caste?

    xmlNode myNode;
    xmlElement myElement;

    myNode=myDoc.Se lectSingleNode( ...);
    myElement=(xmlE lement)myNode;

    ist das möglich, oder gibt es eine möglichkeit attribute
    an ein xmlNode anzuhängen?

    danke


    Comment

    Working...