Anyone with beginning xml knowledge?
Page 1 of 1
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 14:43    Post subject: Anyone with beginning xml knowledge?
Sup guys... I am in a bit of a pickle. I woke up to late and it seems that I have exam from multivariety analysis today... Which whole today was supposed to be sacrifaced towards this... But someone told me that we also have to do a small project from XML.

Now its pretty simple but I am yet to start doing it. Any "help" or advises how to do it?

The lowest recommendation for me to pass this is:
to make xml and dtd for it. Thats it. It even can be in notepad Laughing
It just have to be 50 logically connected lines with some tags reaching 3rd level or whatever its called... well I better get to it then Laughing


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
garus
VIP Member



Posts: 34197

PostPosted: Fri, 31st Jan 2014 14:45    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:51; edited 1 time in total
Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 14:46    Post subject:
to make that for me obviously. Or maybe someone know a usefull not crap generator ?
or maybe i will jsut make it. well that is also an option Crying or Very sad

what vs express do I need to download for this quickly? There are so many versions


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
Werelds
Special Little Man



Posts: 15098
Location: 0100111001001100
PostPosted: Fri, 31st Jan 2014 14:55    Post subject:
Plenty of DTD generators (as well as the reverse) to be found. Use this thing called Google to find them, I heard it works pretty well Wink
Back to top
Przepraszam
VIP Member



Posts: 14512
Location: Poland. New York.
PostPosted: Fri, 31st Jan 2014 15:00    Post subject:
Learn it yourself Razz


Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 15:04    Post subject:
no time!!!


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
Przepraszam
VIP Member



Posts: 14512
Location: Poland. New York.
PostPosted: Fri, 31st Jan 2014 15:05    Post subject:
There is always time, less video games. Very Happy Very Happy


Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 15:29    Post subject:
well fuck.. I cant instal visual studio thanks ot fucked up .net on my pc. I need to reinstall windows but I dont have time. Well. wordpad then Laughing


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
Werelds
Special Little Man



Posts: 15098
Location: 0100111001001100
PostPosted: Fri, 31st Jan 2014 15:33    Post subject:
http://www.xmlforasp.net/codebank/system_xml_schema/buildschema/buildxmlschema.aspx

DTD:
 Spoiler:
 


XML:

 Spoiler:
 


Devil Troll

(JUST KIDDING)
Back to top
Przepraszam
VIP Member



Posts: 14512
Location: Poland. New York.
PostPosted: Fri, 31st Jan 2014 15:37    Post subject:


Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 15:53    Post subject:
haha werelds. I don't think I can sue it Laughing
actually I will be doing something about forum registration. user, administrator and so on... no idea Laughing

well actually it looks pretty usable and its 53 lines Laughing I dont know if tags repeat and if there are triple nests required tho.
I will try to just change some lines. But it will be a game review Laughing


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
Werelds
Special Little Man



Posts: 15098
Location: 0100111001001100
PostPosted: Fri, 31st Jan 2014 16:02    Post subject:
Yeah the point was more to show you how fucking easy you can get an assignment like this done Wink

I just sort of figured I'd put most of that shit in there just to cover most bases. For you though, just create some valid XML, run it through the DTD generator and presto, assignment done. I'm sure you can explain its contents if they ask you. It'll be good enough for most unis Wink
Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 16:06    Post subject:
Yeah i jsut ran Your file and it seems to be ok but it have multiple same tags (aka gow1, 2 ,3 its basically the same.
It needs 50lines and different tags. Tho there seems to be level3 nest Smile


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 17:04    Post subject:
is that ok? its over 50 lines. no repeats (i think) and triple nests. now I need help with DTD. generators make it some crazy long stuff. I dont think its ok
Code:
<?xml version="1.0" encoding="UTF-8"?>
<game>
   <Title>Final Fantasy XX</Title>
   <Developer>Square Enix</Developer>
   <genre>Roleplaying game</genre>
   <theme>
      <setting1>
         <name>Fantasy</name>
         <TimePeroid>
            <StartingYear>2697</StartingYear>
            <EndingYear>2702</EndingYear>
         </TimePeroid>
      </setting1>
      <setting2>
         <name>SciFi</name>
         <TimePeroid>
            <StartingYear>4587</StartingYear>
            <EndingYear>4588</EndingYear>
         </TimePeroid>
      </setting2>
   </theme>
   <Platforms>
      <MainPlatform>
         <name>xbox360</name>
         <source>original</source>
         <releaseDate>31.12.2060</releaseDate>
         <framerate>60</framerate>
      </MainPlatform>
      <SecondaryPlatform>
         <name>PC</name>
         <source>port</source>
         <releaseDate>31.12.2061</releaseDate>
         <framerate>30</framerate>
      </SecondaryPlatform>
   </Platforms>
   <Protagonist>
      <name>Bubsy</name>
      <surname>3d</surname>
      <age>44</age>
      <skills>
         <drivableVechicles>
            <vehicle1>manta</vehicle1>
            <vehicle2>futureBike</vehicle2>
         </drivableVechicles>
         <specialPowers>
            <power1>eating</power1>
               <food1>hamster</food1>
               <food2>fantasyMushrooms</food2>
            <power2>usingBrain</power2>
         </specialPowers>
      </skills>
   </Protagonist>
   <review>
      <socre>
         <ByEditors>
            <editor1>
               <name>Joseph Gamer</name>
               <socre>10/10</socre>
            </editor1>
            <editor2>
               <name>IGNjoe</name>
               <socre>11/10</socre>
            </editor2>
         </ByEditors>
      </socre>
      <text>Amazing piece of art</text>
      <pros>
         <pros1>everything is amazing</pros1>
      </pros>
      <cons>
         <con1>nothing. Game is PERFECT</con1>
      </cons>
   </review>
</game>


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 17:26    Post subject:
also. Is that DTD correct ?
 Spoiler:
 


ok nvm. Made changes to both xml and dtd. Now its all good


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Fri, 31st Jan 2014 19:17    Post subject:
havving setting1 and setting2 as node names is stupid, dont do it!
If they don't need any order you can have just
<settings>
<setting>
<data/>
</setting>
<setting>
<data/>
</setting>
<setting>
<data/>
</setting>
</settings>

and if order is required go for an attribute
<settings>
<setting priority="1">
<data />
</setting>
<setting priority="2">
<data />
</setting>
<setting priority="3">
<data />
</setting>
<setting priority="4">
<data />
</setting>
</settings>

Also aren't you allowed to use attributes?! Use logic to determine which values are more worth to keep in an attribute than in a node. F.e. if there'll be multiple instances, create a group for each possible item that can occur more than once.


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
KillerCrocker




Posts: 20503

PostPosted: Fri, 31st Jan 2014 21:31    Post subject:
I've changed it but thanks for the tip. And dtd I posted is also changed now. It just wasnt in the "right" order

logic don't have much to do with it. Its just a simpliest xml possible.


3080 | ps5 pro

Sin317-"im 31 years old and still surprised at how much shit comes out of my ass actually ..."
SteamDRM-"Call of Duty is the symbol of the true perfection in every aspect. Call of Duty games are like Mozart's/Beethoven's symphonies"
deadpoetic-"are you new to the cyberspace?"
Back to top
ixigia
[Moderator] Consigliere



Posts: 65097
Location: Italy
PostPosted: Sat, 1st Feb 2014 01:05    Post subject:
Werelds wrote:
http://www.xmlforasp.net/codebank/system_xml_schema/buildschema/buildxmlschema.aspx

DTD:
 Spoiler:
 


XML:

 Spoiler:
 


Devil Troll

(JUST KIDDING)

! Laughing

Can't help you KC with this one because the last time that I touched these things was 12 years ago xD. I can only remind you not to capitalize the Y and use an instant grammar checker just in case <3

Very Happy
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - The Useless Void
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group