473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

XML-tagging text document from W3C-schema

Is there an XML-editor that can assist you in marking up the data in an
urformatted text document, such that you mark the data and then
right-click to access the Schema you have assigned, and choose the
tag/attribute in the tree-structure, which then magically appears with
your data enclosed? There must be, right?

My assignment is to bring order to a truckload of stats from various
Athletics events. For individual meetings, the formatting of the list of
results are fairly standardized, but as a rule, they all follow their
own standard, which means there's no hope making a script to automize
the tagging, since there are several hundred meetings.

I have made a fairly simple schema which covers basicaly what I need in
the way of tags, which is:

<statistics>
<season name="" year="">
<meeting name="" date="" country="" location="" arranger="" arena="">
<event name="" category="">
<participant lastname="" firstname="" born="" club="" result=""
type="" place="" other=""/>
</event>
</meeting>
</season>
</statistics>
Here's hoping for some suggestions!

--
A noise annoys an oyster
Apr 4 '06 #1
1 1534
Jana wrote:
Is there an XML-editor that can assist you in marking up the data in an
urformatted text document, such that you mark the data and then
right-click to access the Schema you have assigned, and choose the
tag/attribute in the tree-structure, which then magically appears with
your data enclosed? There must be, right?
Some, AFAIK. Although you don't pick the Schema/DTD after highlighting
the text, you pick it once at the start of the document. Then you
highlight the whole text and enclose it in the root element, and then
you break it into its component elements, tagging each one as you go.
And you probably wouldn't choose it from the tree structure but from
a menu.

I always use Emacs for this, as it has no problem in opening a non-XML
document and letting me add markup. But that's a personal choice, and
many people have serious concerns about seeing angle brackets in their
wild state.
My assignment is to bring order to a truckload of stats from various
Athletics events. For individual meetings, the formatting of the list of
results are fairly standardized, but as a rule, they all follow their
own standard, which means there's no hope making a script to automize
the tagging, since there are several hundred meetings.
One alternative, if it is politically acceptable, is to ship them all
off to one of the many excellent companies in the Indian subcontinent
or the Pacific Rim, who are expert this kind of conversion.

Other wise writing a script *is* going to be easier than using an
editor, even with Emacs macros. Have a look at the plaintext handling
of XSLT2 or Omnimark for an "up-convert" (term for what you are trying
to do).
I have made a fairly simple schema which covers basicaly what I need in
the way of tags, which is:
Before you start, make sure all the athletic associations which are
generating your data will use this schema in future. Otherwise you
or your successor will have the same problem all over again in a few
years. Regular readers of this group may remember the suboptimal
format selected by one international winter sporting organisation
which could easily have been done right if they had thought to ask
someone with a clue.
<statistics>
<season name="" year="">
<meeting name="" date="" country="" location="" arranger="" arena="">
<event name="" category="">
<participant lastname="" firstname="" born="" club="" result=""
type="" place="" other=""/>
</event>
</meeting>
</season>
</statistics>
Here's hoping for some suggestions!


Make sure dates are always in the standard format: yyyy-mm-dd.
Anything else makes it impossible to sort the data.

Make as many as possible of the attributes token lists (in W3C
Schema terminology, "enumerated"). This will identify spelling
and formatting errors when you validate. It is essential that
the data is 100% regularised, otherwise any reports you generate
will have multiple differently-spelled groups.

Consider documenting the DTD or Schema and making it openly
available to the sporting community.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Apr 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
0
by: MarionEll | last post by:
Premier XML Industry Event Slated for Dec. 7-12 in Philadelphia; Presenters Include Adobe, BEA, Microsoft, IBM, Sun, Hewlett-Packard, Oracle Alexandria, Va. Sept. 30, 2003 - IDEAlliance, a...
0
by: melledge | last post by:
The Reliable Source for Everything XML - XML 2005 Update XML 2005 - November 14-18 - Atlanta Hilton Hotel - Atlanta, GA www.xmlconference.org Register today and participate in IDEAlliance's...
5
by: Kurt Bauer | last post by:
I have an ASP group calendar application which pulls calendar data from Exchange via webdav into an XML string. I then loop the XML nodes to populate a collection of appointments. Finally I use...
0
by: MarionEll | last post by:
Premier XML Industry Event Slated for Dec. 7-12 in Philadelphia; Presenters Include Adobe, BEA, Microsoft, IBM, Sun, Hewlett-Packard, Oracle Alexandria, Va. Sept. 30, 2003 - IDEAlliance, a...
5
by: laks | last post by:
Hi I have the following xsl stmt. <xsl:for-each select="JOB_POSTINGS/JOB_POSTING \"> <xsl:sort select="JOB_TITLE" order="ascending"/> This works fine when I use it. But when using multiple...
7
by: Scott M. Lyon | last post by:
Quick (hopefully easy) question for you guys. What is going to be the quickest/easiest way to generate XML from VB.NET? Note: I don't mean an XML file, but XML in memory somehow (an...
1
by: maguca | last post by:
Hello, I am starting to work with XML Explicit. I am having problems with the tags and the level they generate in. Can anyone please help me, for I have looked aroung and it seems that I am...
0
by: jts2077 | last post by:
I am trying to create a large nested XML object using E4X methods. The problem is the, the XML I am trying to create can only have xmlns set at the top 2 element levels. Such as: <store ...
0
by: UncleRic | last post by:
Environment: Mac OS X (10.4.10) on MacBook Pro I'm a Perl Neophyte. I've downloaded the XML::Parser module and am attempting to install it in my working directory (referenced via PERL5LIB env): ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.