only showing one type of node

Having trouble installing Oxygen? Got a bug to report? Post it all here.
fulv
Posts: 2
Joined: Sat Jul 23, 2011 4:16 am

only showing one type of node

Post by fulv »

My apologies for a complete newbie question. I just started using oXygen, and can't figure out what seems like a very simple problem.

I opened an xml file (specifically, a log file from the IRC client Colloquy). The root node is called "log", and it contains several different types of other nodes. However, no matter what view I'm in (text, grid, author), it only shows one type of node (event), as if the other node types did not exist.

Then I tried to generate a schema from it (W3C XML Schema), and it correctly identified all the element types, in addition to the "log" type.

If anyone could give me a clue here, I would really appreciate it!

Thanks!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: only showing one type of node

Post by adrian »

Hello,
fulv wrote:However, no matter what view I'm in (text, grid, author), it only shows one type of node (event), as if the other node types did not exist.
You mean in the editor? In Text mode you will see the entire content of the XML file in the editor, nothing is filtered. If you can't see it, it's not there.
Or are you looking in the Outline view/window?

Does the XML document have a reference to a schema or a DTD(DOCTYPE declaration)? If there is one it should be before the root element or on the root itself.

It's possible that the document only contains "event" elements(on the first level, directly in the root) and there really isn't another type of element in the document, at least not directly in the root.

How did you generate a W3C XML Schema? What did you use as a starting point?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
fulv
Posts: 2
Joined: Sat Jul 23, 2011 4:16 am

Re: only showing one type of node

Post by fulv »

Ack, :oops:
my bad, I opened the wrong file by mistake, and it did indeed only have event elements in the root. The file I used to generate the schema was the one I intended to open in the first place, so obviously the schema did not match.

Thanks for your replay, and sorry about that!
Post Reply