Author Topic: XML POSIONING!!!  (Read 10963 times)

Doctor_Raven

  • Ambassador of VIPER Knowledge
  • ****
  • Posts: 748
  • Karma: +8/-1
  • Lone Guardian of Cybertron
XML POSIONING!!!
« on: November 08, 2005, 12:28:00 pm »
AUUUUGH! *falls over*


I have to create an EAD (Encoded Archival Data) for class and of course it requires XML. The problem is I can't go further until the prof uploads her example from the class.  At least I have XMLSPY for the month.

Anywho. Yeah too much XML contemplation on the brain =/
ಠ_ಠ
I saw what you did there.

Hyperguy

  • Retired Admin 2004-2012
  • Forum Administrator
  • Hardcore VIPER Otaku
  • *******
  • Posts: 2,840
  • Karma: +48/-6
  • o/
Re: XML POSIONING!!!
« Reply #1 on: November 08, 2005, 12:35:30 pm »
Bummer.  How long will it be until Prof uploads it?

I've been meaning to learn xml.

Doctor_Raven

  • Ambassador of VIPER Knowledge
  • ****
  • Posts: 748
  • Karma: +8/-1
  • Lone Guardian of Cybertron
Re: XML POSIONING!!!
« Reply #2 on: November 08, 2005, 04:45:36 pm »
Bummer.  How long will it be until Prof uploads it?

I've been meaning to learn xml.

Well based on when she returned a MARC assignment... this friday =/

XML is alot like HTML, just that you create tags... for alot of the important stuff =|
ಠ_ಠ
I saw what you did there.

JG

  • Karin-chan Fan
  • Website Administrator
  • Hardcore VIPER Otaku
  • ********
  • Posts: 3,497
  • Karma: +85/-4
  • 3000 posts of rediculousness and counting
    • Favorite Sogna Game:
      ・Gokuraku VIPER Paradice
    • Now Playing:
      ・Mario & Luigi: Brothership
    • Sogna Digital Museum
Re: XML POSIONING!!!
« Reply #3 on: November 08, 2005, 06:03:06 pm »
How hard is it to know basic XML?! My goodness, this is a 30 second thing to learn.

Make the first line in your file this:
<?xml version="1.0" ?>
or this:
<?xml version="1.0" encoding="us-ascii" ?>

Substitute whatever encoding you want there, or leave it out to assume an encoding of utf-8.

Now, construct your file in a heirarchial format, just like HTML is.  You can only have one root node though, but any node can have any number of subnodes and any number of arguments, although arguments need to have double quotes around the values.  Standard C type naming rules apply, and names are case-sensitive.  Two or more nodes of the same name can exist at the same level under the same node and are treated as distinct (the data is not joined in parsers.)

Here's a small example:
<?xml version="1.0" encoding="utf-8" ?>
<rootnode arg1="value1" arg2="value2">
 <subnode>
  <interiornode>This is text</interiornode>
 </subnode>
 <subnode>
  <node_with_no_value />
  <node_with_value>Hello World</node_with_value>
 </subnode>
 <newnode argument="value">
  <subnode>
   <text>Hiya</text>
  </subnode>
 </newnode>
</rootnode>

Doctor_Raven

  • Ambassador of VIPER Knowledge
  • ****
  • Posts: 748
  • Karma: +8/-1
  • Lone Guardian of Cybertron
Re: XML POSIONING!!!
« Reply #4 on: November 08, 2005, 07:49:46 pm »
It's not so much the tagging as it is the proper EAD format. Hence me waiting for the prof to post up the example from class. Finding aids have to be done down to the folder level and there are areas which are understandable in the notes but the prof didn't use the correct format for alot of the xml in the slides =___=
ಠ_ಠ
I saw what you did there.