Re: Viewing and Parsing XML files



Hi Hafeez,

Generally, the ID= attribute wouldn't appear. In Word 2003 the capabilities for XML documents vary. Full support of external
Schemas/XSLT is provided in standalone Word and Word in the Professional Edition. You can defined a Schema and attach it to the
XML pane using the dialog accessed under
Tools=>Templates and Addins (Alt, T, I).

The XML Structure Task Pane (View=>TaskPane) will let you navigate the structure of the record content.

If you want to work on the raw XML data you can use
Tools=>Options=>General
and turn on
[x] Confirm Conversions at Open
then when you open the XML file choose Text file rather than XML document as the file type, but opening the .XML file in an XML
Editor will usually be easier to work with.

================
<<"Hafeez Esmail" <HafeezEsmail@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3F2C2E76-92B7-4483-A115-BCC276D6F7EB@xxxxxxxxxxxxxxxx
I'm using Word 2003.
My XML files are defined as follows:
Record
AccountInfo
TransactionInfo
ProductInfo
There are multiple sub-tags, and sub-sub-tags within the ones I've listed,
but let's ignore them for the time being.
1) How do I open the document in Word and show the tags as they would
appear in Notepad? Some of the information in the XML file is not showing
because it's hidden in the tag name. For example...<Record id="1"> is what
appears in NotePad, but only a Tag Named "Record" appears in Word.
2) Is there a quick way for me to Isolate all of the details associated with
(for example) Record numbers 3, 9, 14, and 45, and place that information
(copying the exact same struture) in a new file? >>
--
Please let us know if this has helped,

Bob Buckland ?:-)
MS Office System Products MVP

>>*Courtesy is not expensive and can pay big dividends<<

LINKS
A. Specific newsgroup/discussion group mentioned in this message:
news://msnews.microsoft.com/microsoft.public.office.xml
or via browser:
http://microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.office.xml

B. MS Office Community discussion/newsgroups via Web Browser
http://microsoft.com/office/community/en-us/default.mspx
or
Microsoft hosted newsgroups via Outlook Express/newsreader
news://msnews.microsoft.com



.



Relevant Pages

  • Re: xml in plain text file on heavy load.
    ... even if the XML file is magically and perfectly ... I want to emphasize that IIS would never be caching that XML file on its own ... Application is NOT synchronizing access to your ASP pages. ...
    (microsoft.public.inetserver.iis)
  • Re: TAPI 3.0 call attached data
    ... The format of the Call Attached Data is XML. ... XML file with CallAttchedData represents one or multiple data lists ... Root element is CallAttachedData. ... version CDATA #FIXED "1.0" ...
    (microsoft.public.win32.programmer.tapi)
  • Re: XML parser and writer
    ... them on a calendar. ... Therefore I will need to both easily parse and write new XML files. ... why not some database technology? ... an advanced user can edit the XML file directly at ...
    (comp.lang.java.programmer)
  • Re: Zooming Out: The Larger Issue
    ... XML file or a binary file (smaller and faster to serialize deserialize, ... On startup of your app you could just check if the xml / binary file exists ... datarow = the container of one or more datacolumns wich in there turn hold ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XmlTextReader or XmlDocument or SQLCE
    ... I wouldn't really call it "unrealistic expectations", ... I would love to see a 1 second response time ... reading a single node from a 200k XML file on any version of CF running on ... > As to saving XML file after each change, ...
    (microsoft.public.dotnet.framework.compactframework)