Viewing the entire XML error message.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the task pane open and I have switched to the XML Structure view.
When I have a node that is signialing an error in the 'Elements in the
document' pane, I right click on it to view the advanced xml error message.
Unfortunately, the entire message is not displayed.

It is too long to show up in the space provided. Is there anyway to see the
entire message?
 
Hi =?Utf-8?B?YmRhbmllbDc2?=,
I have the task pane open and I have switched to the XML Structure view.
When I have a node that is signialing an error in the 'Elements in the
document' pane, I right click on it to view the advanced xml error message.
Unfortunately, the entire message is not displayed.

It is too long to show up in the space provided. Is there anyway to see the
entire message?
You'd need to use VBA to get the error message. Internally, Word will give you
a user-friendly interpretation of the error message. For example
MsgBox Selection.XMLParentNode.ValidationErrorText

If you want the actual XML error, you'd need to use an XML Parser in the VBA
project (such as MSXML) and work through that.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Hi =?Utf-8?B?YmRhbmllbDc2?=,
What event would I hook into to capture such a message?
I'm sorry, I don't know that (my general XML skills are
decidedly rusty). Best place to ask that would be the XML
newsgroup.

http://msdn.microsoft.com/newsgroups/default.aspx?dg=micros
oft.public.office.xml&lang=en&cr=US

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
 

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

Back
Top