XMLSpy question

M

Mr. Land

I use XMLSpy 2004 to work with a lot of #include'd xml files. Because
these files don't have a root tag, XMLSpy doesn't validate them
correctly, and therefore will not allow me to use Grid view.

If I manually enter a root tag, I can use Grid view, but this seems
pretty silly...anyone know a way around this problem?

Thanks.
 
J

Johannes Koch

Mr. Land said:
I use XMLSpy 2004 to work with a lot of #include'd xml files. Because
these files don't have a root tag, XMLSpy doesn't validate them
correctly, and therefore will not allow me to use Grid view.

If I manually enter a root tag, I can use Grid view, but this seems
pretty silly...anyone know a way around this problem?

You want to include XML files. But these files aren't XML because they
are not well-formed. So you can't include them, right?
 
M

Mr. Land

No, I can include these files just fine.

The problem is, because they are physically separate files, and because
their tags are included inside the root tag of another file, they have
no root tags of their own. Because they have no root tags, XMYSpy
marks them as not well-formed, and won't allow me to use Grid view to
navigate/edit them.

I actually sent this problem to Altova and got a response: it won't
work, and there's no way around it.

But, I'm thinking, if I can figure out a way to write a small script
that will quick insert (and remove) a root tag into the current
document, that would be a good workaround. Problem is I don't know how
to do that.

Thank you for your reply.
 
A

Andy Dingley

anyone know a way around this problem?

Stop using XML Spy. It's very inflexible for things like this.

Of course their behaviour is "right". But in practical terms, I spend
my day editing all manner of files, some of which are XML, some of
which are obscure XML features (XMLSpy also fails for Schemas with
inclusions), some of which are "almost" XML like your example and some
of which are just plain text. Now if XML Spy was a little more
helpful to _my_ work in dealing with this workload, then I might use
it a bit more. But it forces me to use two editors at a time,
something I won't put up with - and I prefer to work with XML
inefficiently in my text editor that to be unable to edit simple text
in XML Spy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top