xmlNode auf xmlElement casten

  • Thread starter Thread starter andrej
  • Start date Start date
A

andrej

hi,

ich habe eine anwendung, welche ein xml document erstellt.

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

selectsinglenode( ....)

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.SelectSingleNode(...);
myElement=(xmlElement)myNode;

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

danke
 
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
selectsinglenode(....) 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.SelectSingleNode(...);
myElement=(xmlElement)myNode;

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

hi,

ich habe eine anwendung, welche ein xml document erstellt.

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

selectsinglenode( ....)

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.SelectSingleNode(...);
myElement=(xmlElement)myNode;

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

danke
 
Back
Top