|
Re: element namespace [message #65399 is a reply to message #65377] |
Thu, 15 December 2005 15:25 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------090209030405010706040508
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Param,
You can use this method from XSDConstants:
public static String lookupQualifier(Node node, String namespaceURI)
You can get the node by calling XSDComponent.getElement and you can get
the namespace from XSDElementDeclaration.getTargetNamespace.
param wrote:
> Hi
>
> How do I get namespace prefix from each element from my Schema file
>
> My schema is like this
>
> <xstest:schema xmlns:xstest="http://www.w3.org/2001/XMLSchema">
> <xstest:element name="fromRole">
> <param:complexType>
> <xstest:sequence>
> <xstest:element name="PartnerRoleDescription">
> <xstest:complexType>
> <xstest:sequence>
> <xstest:element
> name="GlobalPartnerRoleClassificationCode" type="xstest:string"
> minOccurs="0" maxOccurs="4"/>
> </xstest:sequence>
> </xstest:complexType>
> </xstest:element>
> </xstest:sequence>
> </param:complexType>
> </xstest:element>
> </xstest:schema>
>
>
> I should get xstest , param
> Please help me How do I get.
>
> Advance Thanks,
> Param
--------------090209030405010706040508
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Param,<br>
<br>
You can use
|
|
|
Re: element namespace [message #597346 is a reply to message #65377] |
Thu, 15 December 2005 15:25 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Ed Merks![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=ed.merks%40gmail.com) Messages: 33209 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------090209030405010706040508
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Param,
You can use this method from XSDConstants:
public static String lookupQualifier(Node node, String namespaceURI)
You can get the node by calling XSDComponent.getElement and you can get
the namespace from XSDElementDeclaration.getTargetNamespace.
param wrote:
> Hi
>
> How do I get namespace prefix from each element from my Schema file
>
> My schema is like this
>
> <xstest:schema xmlns:xstest="http://www.w3.org/2001/XMLSchema">
> <xstest:element name="fromRole">
> <param:complexType>
> <xstest:sequence>
> <xstest:element name="PartnerRoleDescription">
> <xstest:complexType>
> <xstest:sequence>
> <xstest:element
> name="GlobalPartnerRoleClassificationCode" type="xstest:string"
> minOccurs="0" maxOccurs="4"/>
> </xstest:sequence>
> </xstest:complexType>
> </xstest:element>
> </xstest:sequence>
> </param:complexType>
> </xstest:element>
> </xstest:schema>
>
>
> I should get xstest , param
> Please help me How do I get.
>
> Advance Thanks,
> Param
--------------090209030405010706040508
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Param,<br>
<br>
You can use
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04194 seconds