I need help with a question regarding XML
I have an exam tomorrow, and I was checking exams from previous years. There is a multiple choice question regarding XML, and I don't know all the correct answers (some are pretty obvious).
It's plattform independent
It allows UML representation
It's a Text Only format
It's faster to process than native binary formats
It's a data exchange standard
It allows specification of the meaning of the data in the document
It comes from HTML
.NET and J2EE provide tools to handle it
In the beginning there was SGML... the newest HTML
standard is an XML defined language (although most
sites and pages are still not XML compliant). Soyou
can think of HTML as a subset of XML but XML isnot
by any means a subset of HTML.But wasn't XML's format based on the original HTML?
That is, XML is a generalization of the original
HTML. So, the "true"/"false" determination depends
on how you define "It comes from HTML" (I thought it
was derived from HTML, which would make the
statement "true" [IMHO], but I could be wrong).No XML is not derived from HTML. Markup languages existed well before HTML. HTML popularized them to a large extent but it was not the first by any means.
See http://en.wikipedia.org/wiki/Generalized_Markup_Language
Also Wiki states in it's XML article that XML is a subset of SGML (which through that article) is a descendent of GML
The language heirarchy from SGML is as follows
SGML ---- HTML (old spec and deprecated)
|
|
----- XML ----- XHTML (current XML spec)edit: the tree got screwed up. XML descends from SGML directly.
Message was edited by:
cotton.m
Similar Messages
-
Need help with generating keys from xml
Hello,
I am just learning about JCE and am haveing some problems with implementing a basic program.
I have the following information:
<RSAKeyValue>
<Modulus>Base64EncodedString</Modulus>
<Exponent>Base64EncodedString</Exponent>
<P>Base64EncodedString</P>
<Q>Base64EncodedString</Q>
<DP>Base64EncodedString</DP>
<DQ>Base64EncodedString</DQ>
<InverseQ>Base64EncodedString</InverseQ>
<D>Base64EncodedString</D>
</RSAKeyValue>
From which I need to construct a public and private key. I am using RSA algorithm for the encrypting and decrypting. I am using the org.bouncycastle.jce.provider.BouncyCastleProvider provider. Any help would be greatly appreciated.
My questions are:
1) Is it possible to create the public and private key from this data?
2) How can I construct a public and private key from this data.
Thank you in advance.
Sunit.Thanks for your help...I am still having problems.
I am now creating the public and private keys. I am generating the public exp, modulus, private exp, and the encrypted text from another source.
so my questions are:
1) How do I verfiy that the private and public keys that I generate are valid?
2) How do I get the decrypted text back in a readable form?
3) the decrypted text should read "ADAM"
Here is a test I wrote:
_________________STARTCODE_____________________
import java.security.*;
import java.security.spec.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.math.BigInteger;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
public class CryptTester
protected Cipher encryptCipher = null;
protected Cipher decryptCipher = null;
private KeyFactory keyFactory = null;
protected PublicKey publicKey = null;
protected PrivateKey privateKey = null;
private RSAPublicKeySpec publicKeySpec = null;
private RSAPrivateKeySpec privateKeySpec = null;
public CryptTester()
/* Create Cipher for asymmetric encryption (
* e.g., RSA),
try
encryptCipher = Cipher.getInstance("RSA", "BC");
System.out.println("Successfully got encrypt Cipher" );
decryptCipher = Cipher.getInstance("RSA", "BC");
System.out.println("Successfully got decrypt Cipher" );
keyFactory = KeyFactory.getInstance("RSA" , "BC");
System.out.println("Successfully got keyFactory" );
}catch ( NoSuchAlgorithmException nsae)
System.out.println("Exception1: " + nsae.toString() );
catch ( NoSuchPaddingException nspe)
System.out.println("Exception2: " + nspe.toString() );
catch ( java.security.NoSuchProviderException nspe)
System.out.println("Exceptiont6: " + nspe.toString() );
/* Get the private and public keys specs
BigInteger publicMod = new BigInteger ("86e0ff4b9e95bc6dcbfd6673b33971d4f728218496adcad92021923a9be815ddb7ecf17c06f437634c62fa999a293da90d964172a21d8ce74bd33938994fbd93377f7d83ce93d523782639c75221a3c91b53927a081b2b089a61770c6d112d78d5da8a6abc452d39a276787892080d6cf17dd09537c1ec5551d89567345068ef", 16);
BigInteger publicExp = new BigInteger ("5");
BigInteger privateExp = new BigInteger ("50ed65fa2bf3710ead980a456b88dde62de4e0e9", 16);
publicKeySpec = new java.security.spec.RSAPublicKeySpec( publicMod, publicExp );
privateKeySpec = new java.security.spec.RSAPrivateKeySpec( publicMod, privateExp);
try
privateKey = keyFactory.generatePrivate(privateKeySpec);
publicKey = keyFactory.generatePublic(publicKeySpec);
}catch ( InvalidKeySpecException ivse)
System.out.println("Exception3: " + ivse.toString() );
try
* initialize it for encryption with
* recipient's public key
encryptCipher.init(Cipher.ENCRYPT_MODE, publicKey );
decryptCipher.init(Cipher.DECRYPT_MODE, privateKey );
}catch ( InvalidKeyException ivse)
System.out.println("Exception4: " + ivse.toString() );
public String getPublicKey()
//return new String(publicKey.getEncoded());
return publicKey.toString();
public String getPrivateKey()
// return new String(privateKey.getEncoded());
return privateKey.toString();
public String encryptIt(String toencrypt)
* Encrypt the message
try
byte [] result = null;
try
result = encryptCipher.doFinal(toencrypt.getBytes());
catch ( IllegalStateException ise )
System.out.println("Exception5: " + ise.toString() );
return new String(result);
}catch (Exception e)
e.printStackTrace();
return "did not work";
public String decryptIt(String todecrypt)
* decrypt the message
try
byte [] result = null;
try
result = decryptCipher.doFinal(todecrypt.getBytes());
catch ( IllegalStateException ise )
System.out.println("Exception6: " + ise.toString() );
return new String(result);
}catch (Exception e )
e.printStackTrace() ;
return "did not work";
public static void main(String[] args)
try
Security.addProvider(new BouncyCastleProvider());
CryptTester tester = new CryptTester();
String encrypted = "307203c3f5827266f5e11af2958271c4";
System.out.println("Decoding string " + encrypted + "returns : " + tester.decryptIt(encoded) );
} catch (Exception e)
e.printStackTrace();
_________________ENDPROGRAM_____________________ -
Need help with Link passed from XML
This is to create a flash driven navigation menu. What I have
is a coldfusion page that serves a simple XML formatted page. There
are 3 XML components, linkLabel, linkURL and linkType. The label
just passes text, the type is just a number 0-9 that is used to
determine the style of the button. The linkURL that is passed from
coldfusion comes across encoded for XML, so what I end up with is
url's that replace "&" with ";amp;".
So my question is this, is there an easy way in the
actionscript to replace the ";amp;" with "&"? Other than that
little problem, the rest of the script runs just fine, I just can't
seem to find the syntax I'm looking for to replace items in a
string. I saw the code for replacesel() but this doesn't seem to do
it, unless i'm writing it wrong.Just in case you want something similar in future:
string = string.split("&").join("&");
is an easy way to replace something in a string (here
'&' gets replaced with '&').
greets,
blemmo -
I need help with some questions
I seen where it said if something happens to your computer that you will loose the music you bought and downloaded . Will you also loose the information about your itunes gift card ?How do you run a diagnostic before you buy ? Is there a phone number to contat someone in this case , or could it be sent to my E-Mail address ? Also I would like to thank the people that helped me with my first question .
It has always been very basic to always maintain a backup copy of your computer, so if somethign happens to your computer, you lose nothing, as you have a backup copy.
"Will you also loose the information about your itunes gift card ?"
When you redeem a gift card the balance is on your account. It is accessible from anycomputer with itune, when you sign into your account. This would not be affected by lodd of your computer. Again, you should ALWAYS have a backup copy of your computer.
"How do you run a diagnostic before you buy ? "
Runa diagnostic of what before you buy what?
"Is there a phone number to contat someone in this case , or could it be sent to my E-Mail address ?"
Again, in what case? Could what be sent to your e-mail? -
Need help! (Simple question regarding Soundblaster Wireless Music)(I ho
Hey everyone, this might be a bit of a dumb n00b question but I'm having a problem with my soundblaster wireless music.
The problem is that it won't shuffle any tracks.
I have createdplaylists, populated them all very easily, but it will only play one track from each one. I have to select every single track it I want it to play manually on the remote. Using the 'Mode' button on the remote about all I can get it to do is repeat the same track over and over again.
The only way i've been able to get it to shuffle is by loading a bunch of tracks into the "Now Playing" secton of the console but that seems a little tedius and kind of what i created the playlists for in the firstplace.
Is this the way the software is supposed to function or am I missing something so simple that it will make me look dumb...When trying to play your play list with the remote are you going into the playlist before hitting play? You need to hit play at the playlist list level, not once you'e gone into a given playlist where the songs of the playlist are listed.
W3 -
NEED HELP WITH A QUESTION ABOUT PURCHASING A NEW IPOD AFTER GIVING MY OLD
IPOD TO MY SON. IT WAS FILLED WITH 3600 SONGS AND I STILL HAVE THOSE SONGS IN MY ITUNES LIBRARY. MY QUESTION IS CAN I BUY A NEW IPOD AND LOAD IT ON COMPUTER USING MY ITUNES LIBRARY--I MEAN WILL ITUNES AND MY COMPUTER RECOGNIZE THE NEW ONE. IF NOT, WHAT CAN I DO? JEFF
You should be fine, just make sure the new one has the current firmware, dock it to the computer, & away you go.
Please kill the "caps lock" key when posting, it's considered to be shouting & it's rude. Thanks. -
Need Help with Linking Question
Not quite sure how to do this.
I have a gallery page of thumbnails that I want to reference
a different layout page for the individual image.
What I want to happen is, when you click the thumbnail on the
thumbnail gallery page, a new layout page opens in the same browser
window with that thumbnails larger image. I know how to link the
new .html page , or the larger image, But I don't know how to link
them both so they both open?
I have many images and pages of thumbnails that I have to do
this with.
Thanks for any help> a new layout page opens in the same browser window
You want the new page to replace the current page in the
browser viewport?
> But I don't know how to link them both so they both
open?
I guess I don't understand what "both" is?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Orr 4" <[email protected]> wrote in message
news:eb26ps$mlp$[email protected]..
> Not quite sure how to do this.
> I have a gallery page of thumbnails that I want to
reference a different
> layout page for the individual image.
> What I want to happen is, when you click the thumbnail
on the thumbnail
> gallery page, a new layout page opens in the same
browser window with that
> thumbnails larger image. I know how to link the new
.html page , or the
> larger
> image, But I don't know how to link them both so they
both open?
> I have many images and pages of thumbnails that I have
to do this with.
>
> Thanks for any help
> -
Need help with gradient mask over XML images
I have a file that works great in pulling images via XML
data. I want to create a gradient mask using flash CS3, but i can't
seem to get any sort of mask (solid or gradient) to react with the
XML driven images.
Download my FLA
and other working files
845 kbgranted i can see resizing the mask and now it responds...
however, take a look at this
Sample of alpha gradient mask:
http://www.devx.com/webdev/Article/29296#codeitemarea
i'm trying to this type of mask (static mask obviousl) -
Need help with a question on upgrading my Adobe After Effects CS5
Hey guys I am wondering if there is a way to upgrade from CS5 to CC. Need to know if that is possible, if it is then how much is it and how do I do it?
stone brothers production wrote:
Hey, I was wondering if there is a one time payment or do you have to pay once a month?
All Adobe CS Licenses are now subscription based.
And If I have CS5, do they have beginner tutorial videos for it?
Start here:
Getting started with After Effects (CS4, CS5, CS5.5, CS6, & CC) | After Effects region of interest
and is there plugins I can download for better effects?
All the effects that come with After Effects are included when you install it. There are many vendors of third party effects available, some free and many that cost money. Some starting points:
https://www.redgiant.com/store/universe
VIDEO COPILOT | After Effects Tutorials, Plug-ins and Stock Footage for Post Production Professionals
Toolfarm.com :: Adobe After Effects Plug-Ins -
Help With A Question Regarding Nokia 6300
Hi everyone,
Im usually quite good with mobiles in knowing what they do and dont accept kinda thing but ive found myself a little ticked off a Vodafone right now and im hoping one of you can answer my question please.
As soon as I had charged my phone up I contacted vodafone for the settings in order for me to browse the web on it. Once I had done that, I had a look for a ringtone I wanted, bought it, waited for the text and when it arrived I went to that link (from vodafone live) and attempted to download it. All I got was "download failed" twice.
The first time it happend, Vodafone refunded me and told me to wait at least 24 hours before attempted to buy it again which I did, I waited well over 24 hours.
I tried again and the same thing happened so I contacted them once more and just asked them to refund me once more and I just wont bother with it. They wouldnt, they told me to check if it is compatible or not....im nearly 99.9999% sure this phone takes realtones. Obviously I could be wrong and ill be embarrassed if it doesnt but could someone answer this and possibly explain why it might not be letting it download?
Ive had nokias before and the settings all seem to be in order, I deleted and moved some stuff to my memory card so im pretty sure there is enough memory.
Thanks a million.check here in the "digital services" part http://europe.nokia.com/find-products/devices/nokia-6300/technical-specifications it says true tones. this is it.
it might be Vodafone's network problem that gives you the "download failed" message.
Greece Nokia X6 RM-559 v40.0.002 -
Need help with transforming abap to xml doc!!
Abap To XML
Posted: Aug 18, 2005 11:31 AM Reply E-mail this post
I was able to transfer xml data from abap internal tables to a string.
Here is the content of the string:
<?xml version="1.0" encoding="iso-8859-1"?>
<asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml">
<asx:values>
<DATA>
<item>
<UOM1 />
<UOM2>L</UOM2>
<GL_PR_SEG />
<RECORDMODE>A</RECORDMODE>
</item>
</DATA>
</asx:values>
</asx:abap>
Now my goal is to strip out a couple of tags out of that string directly using xslt.
Do you know of any way i could take out the <asx:abap> and <asx:values> tags using an xslt program. I'd like to be able to strip them out directly from the string itself.Hi there,
Unfortunately this is a bit outside the scope of what ExportPDF is designed for. You may be able to convert your document to a Word file and, as long as you didn't write over any of the printed text on the document, make your edits there to remove your writing That said, it sounds like your best bet would be to scan the document to an image format, then use a photo-editing application, such as Photoshop Elements to touch up and remove your hand-written notes.
Please let us know if you have any questions.
-David -
Need help with sun one and xml
I have installed the Java Web Services Developer Pack. I am also using Sun One ide. I am trying to import the dom package. When ever i use "import org.", in the Sun One ide to lookup the packages, no packages come up for w3c.dom. I have tried to just use "import org.w3c.dom;", but i get an error when i try to instantiate a DOMImplementation. The JWSDP says that you do not need to register any classpaths. Any help would be much appreciated.
I've noticed that no packages come up either.
Try:
import org.w3c.dom.*;
to import all the classes, or be more specific:
import org.w3c.dom.Node;
(this is better coding style as you know exactly what classes you are using)
Hope this helps
Chalotte -
Need help with camera question
will these cameras work in 1movie 6.0.3?
panasonic hdc-dx1
sd1
sd5
sx5
these seem to have usb connections while i thought imovie needed firewire to download movie files.
thankstitanium boy wrote:
will these cameras work in 1movie 6.0.3?
no, none.
iMHD6 supports ONLY miniDV based devices (SD or HDV) .. -
I need help with a question about iPod Touch 5
I have a iPod touch, and I need to know, if I have the google app(or any app) open, and I hit the lock button, will it close the app?
yes, unless the app is intended to run in the background, like a music app maybe. For those, you can turn them off from the app itself
-
I need help with my question..from anyone?
My ipod is currently broken, but i only have one question. Will it cost an extra fee to have the color of my ipod ( 4th gen. ) changed to white?
Apple will exchange your iPod for a refurbished one for this price. They do not fix yours. You will have to contact Apple to see if they will change the color.
Apple - iPod Repair price
Maybe you are looking for
-
Getting error while updating property of image through weblogic CMS
Hii I want to add alt text and alt title to an existing image through Weblogic Content Management System_ . For that I have used adAltText property of ad content type. For that I have refer the following link [ http://docs.oracle.com/cd/E13155_01/wlp
-
Mp3 loops no longer working after upgrade.
Heyho, I am a podcaster, and my strategy had been to copy a default GarageBand project that already had some segments I cut from an mp3 song in a separate track for the intro and outro. After upgrading to GB3, these mp3 segments no longer play (while
-
i was wondering how could i get the following error when my partition strategy is partition by range (service_dt) partition call_minvalue values less than (to_date('2007-07-09','YYYY-MM-DD')) tablespace data1, partition call_part_20070719 values less
-
Creation of file that have path with spaces (on aplication server)
Hello all, Does anybody know how to do this? When I try to save save file with path like '/usr/sap/some dir/file.txt' than '/usr/sap/some' is being created (everything after first space is being cut). What should I do?
-
Trouble using .mac mail alias's with Panther Mail
I am using Mac Mail 1.3.11 (Panther) here and have a .mac account. When I compose mail, the Account field in the header only allows me to select my main .mac account name. This seems to defeat the purpose of alias's - if I have to send mail from my r