Help: Get Attribute Value!!!!
Nasreen Laghari <[email protected]> Tue, 13 Nov 2007 15:30:32 +0000
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1129752638==
Content-Type: multipart/alternative;
boundary="_4bfd3324-de2a-4bbe-af86-4750dbe1a6d1_"
--_4bfd3324-de2a-4bbe-af86-4750dbe1a6d1_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All,
=20
This is my very first email here and first step towards SAX.
=20
I have made an XML file, I need to get Elements Attributes Value. I' have b=
een looking and I got getAttributeValue (int index) but I'm confused on int=
value as parameter.
=20
Could any 1 please show me coding example of getting attribute value!!!
=20
=20
Below is my XML file:
=20
<ServiceAccess> <ServiceProviders> <HSP name=3D"HSP1" URL=3D"http://localh=
ost:8080/axis2/services/HealthcareServiceProvider1" /> <HSP name=3D"HSP2" =
URL=3D"http://localhost:8080/axis2/services/HealthcareServiceProvider2" /> =
<HSP name=3D"HSP3" URL=3D"http://localhost:8080/axis2/services/HealthcareS=
erviceProvider3" /> <HSP name=3D"HSP4" URL=3D"http://localhost:8080/axis2/=
services/HealthcareServiceProvider4" /> <HSP name=3D"HSP5" URL=3D"http://l=
ocalhost:8080/axis2/services/HealthcareServiceProvider5" /> <HSP name=3D"H=
SP6" URL=3D"http://localhost:8080/axis2/services/HealthcareServiceProvider6=
" /> </ServiceProviders> <AuthenticationServer> <HSU name=3D"" URL=3D"lo=
calhost"/> </AuthenticationServer></ServiceAccess>
=20
=20
Regards
_________________________________________________________________
Help yourself to FREE treats served up daily at the Messenger Caf=E9. Stop =
by today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=3DTXT_TAGLM_Oc=
tWLtagline=
--_4bfd3324-de2a-4bbe-af86-4750dbe1a6d1_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>Hi All,<BR>
<BR>
This is my very first email here and first step towards SAX.<BR>
<BR>
I have made an XML file, I need to get Elements Attributes Value. I' have b=
een looking and I got getAttributeValue (int index) but I'm confused on int=
value as parameter.<BR>
<BR>
Could any 1 please show me coding example of getting attribute value!=
!!<BR>
<BR>
<BR>
Below is my XML file:<BR>
<BR>
<BR><ServiceAccess><BR> <ServiceProviders><BR> =
<HSP name=3D"HSP1" URL=3D"<A href=3D"http://localhost:8080/axis2/service=
s/HealthcareServiceProvider1">http://localhost:8080/axis2/services/Healthca=
reServiceProvider1</A>" /><BR> <HSP name=3D"HSP2" URL=3D"<=
A href=3D"http://localhost:8080/axis2/services/HealthcareServiceProvider2">=
http://localhost:8080/axis2/services/HealthcareServiceProvider2</A>" /><=
BR> <HSP name=3D"HSP3" URL=3D"<A href=3D"http://localhost:808=
0/axis2/services/HealthcareServiceProvider3">http://localhost:8080/axis2/se=
rvices/HealthcareServiceProvider3</A>" /><BR> <HSP name=3D=
"HSP4" URL=3D"<A href=3D"http://localhost:8080/axis2/services/HealthcareSer=
viceProvider4">http://localhost:8080/axis2/services/HealthcareServiceProvid=
er4</A>" /><BR> <HSP name=3D"HSP5" URL=3D"<A href=3D"http:=
//localhost:8080/axis2/services/HealthcareServiceProvider5">http://localhos=
t:8080/axis2/services/HealthcareServiceProvider5</A>" /><BR> =
<HSP name=3D"HSP6" URL=3D"<A href=3D"http://localhost:8080/axis2/service=
s/HealthcareServiceProvider6">http://localhost:8080/axis2/services/Healthca=
reServiceProvider6</A>" /><BR> <BR> </ServiceProvider=
s><BR> <AuthenticationServer><BR> <HSU name=3D"=
" URL=3D"localhost"/><BR> </AuthenticationServer><BR></Ser=
viceAccess><BR>
<BR> <BR>
<BR>
Regards<BR><br /><hr />Help yourself to FREE treats served up daily at the =
Messenger Caf=E9. <a href=3D'http://www.cafemessenger.com/info/info_sweetst=
uff2.html?ocid=3DTXT_TAGLM_OctWLtagline' target=3D'_new'>Stop by today!</a>=
</body>
</html>=
--_4bfd3324-de2a-4bbe-af86-4750dbe1a6d1_--
--===============1129752638==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--===============1129752638==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
List: sax-devel, [email protected]
See: http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel
--===============1129752638==--