473,785 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1561
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
2767
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), plus speed up if the stylesheet+dtds is located on the local machine. Question #1: How do I create a catagory.xml file, which works?
0
1558
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 leading trade association dedicated to fostering XML and other information technology standards, today announced the full program for XML Conference and Exposition 2003, being held Dec. 7-12, at the Pennsylvania Convention Center in Philadelphia,...
0
1511
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 XML 2005 Conference, the most respected educational gathering of technologists, novices, experienced implementers and users, consultants, and innovators to share knowledge and experiences, gain insight, and initiate new advancements in XML and...
5
2734
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 the appointment collection to populate the calendar control. The performance getting the XML data is fine, but loading the data into the collection is slow. My question/problem is should I be using the collection, a dataset, or something else to...
0
1093
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 leading trade association dedicated to fostering XML and other information technology standards, today announced the full program for XML Conference and Exposition 2003, being held Dec. 7-12, at the Pennsylvania Convention Center in Philadelphia,...
5
4212
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 values in the where clause as below
7
10605
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 XML-related object, but one that would have a method for getting the fully-formed XML back out again).
1
1538
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 doing everything fine!!! I am attaching below an example of the query and the XML it generates. ===========================
0
2796
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 xmlns="http://www.store.com/xml/1.1.0.0/impex/catalog"> <product sku="10050-1653" xmlns="http://www.store.com/xml/1.1.0.0/impex/catalog"> <sku>10050-1653</sku> <name xml:lang="x-default">shop's Foie Gras</name> <online>1</online> ...
0
2240
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): PERL5LIB=/Users/Ric/Library/Perl/ ls XML-Parser-2.34/ XML-Parser-2.34.tar
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.