Skip to main content
Known Participant
October 21, 2008
Question

Content-Type of XML-Element?

  • October 21, 2008
  • 5 replies
  • 625 views
This might be a very easy question:

Is there a possibility to find out which kind of object a certain xml-element is?
PageItem, Movie, Sound, Graphic, Story, Text, Cell or Table

Thanks
Huksy
This topic has been closed for replies.

5 replies

_huksy_Author
Known Participant
October 29, 2008
Many Thanks! :-)

H.
srakete
Inspiring
October 29, 2008
hi husky,

try this:

if(myElement.xmlContent == "[object Cell]") alert("cell");

Stefan
_huksy_Author
Known Participant
October 29, 2008
Alright, then I get the content of the element. But how do I know the certain element is a cell?
This didn't work:

...
if(myElement.xmlContent == Cell) {
alert ("Found Cell!");
}
...

H.
Kasyan Servetsky
Legend
October 29, 2008
See xmlContent property — The text content or page item referred to by the element. Can return: Text, Story, PageItem, Movie, Sound, Graphic, Table or Cell.
_huksy_Author
Known Participant
October 28, 2008
Anybody?