I have an XML class that is parsing an XML file (XBEL file or XML bookmark exchange language ) with all of my Firefox bookmarks to display them on a web page (I am using the bookmark syncronization extension which auto uploads the bookmarks file). I want to be able to label a link with "[private]" to prevent a bookmark from being displayed on my site.

My class has a function for the opening node, a function for the content between the tags, and a function to handle the closing tag of the node.

My code is doing something really wierd. When it comes to a node marked "[private]" it writes in the id from the previous node using it in my javascript jump menu showing the private links instead of the public links of the current node. For this one attribute is teems to be using the previous item from the parse array.

To see an example click the first option "Mac" at this address : Example
It shows a set of links that should be hidden.

I have attached the class for reference.

This would be a very handy class to post your bookmarks automatically to your site using Firefox, if I could just get past this one bug!!

    Ok, let me try rephrase my question to make it more digestible.

    Does anyone know how to, when parsing an XML doc, to skip over a node?

      Write a Reply...