472,993 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

Specifying the xsd:param value

Hello All,

I have an xml element namely
<csharpAttr>"[DllImport("user32.dll", SetLastError=false,
ExactSpelling=false)]"</csharpAttr>
the value of tha element could be anything for example
<csharpAttr>"[Conditional("DEBUG"), Conditional("TEST1")]"
</csharpAttr>
now I want to create a schema for this "charpAttr" element .
So the idea is the value should always start with a "[" and end with
"]"
So how do I specify the
pattern value
in the following
<xs:simpleType name="charpAttrType">
<xs:restriction base="xs:string">
<xs:pattern value= ???????/>
</xs:restriction>
</xs:simpleType>
Or if any body could suggest an alternate way (probably a better way)
that would be awesome.
Thanks in advance
sP

Aug 18 '06 #1
2 1104
sp*****@gmail.com wrote:
Hello All,

I have an xml element namely
<csharpAttr>"[DllImport("user32.dll", SetLastError=false,
ExactSpelling=false)]"</csharpAttr>
the value of tha element could be anything for example
<csharpAttr>"[Conditional("DEBUG"), Conditional("TEST1")]"
</csharpAttr>
now I want to create a schema for this "charpAttr" element .
So the idea is the value should always start with a "[" and end with
"]"
But it doesn't. Your first example starts and ends with a double-quote.
Your second example starts with a double-quote and ends with a newline
(white-space). If you declare the element content to start and end with
square brackets, both your examples will be invalid.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Aug 20 '06 #2
Thanks Peter,

I think its just issue the way its displayed here in the groups. Both
my samples end with double quotes

<csharpAttr>"[DllImport("user32.dll", SetLastError=false,
ExactSpelling=false)]"</csharpAttr>

<csharpAttr>"[Conditional("DEBUG"), Conditional("TEST1")]">
</csharpAttr>.

Now how do I specify the pattern value?

sp*****@gmail.com wrote:
Hello All,

I have an xml element namely
<csharpAttr>"[DllImport("user32.dll", SetLastError=false,
ExactSpelling=false)]"</csharpAttr>
the value of tha element could be anything for example
<csharpAttr>"[Conditional("DEBUG"), Conditional("TEST1")]"
</csharpAttr>
now I want to create a schema for this "charpAttr" element .
So the idea is the value should always start with a "[" and end with
"]"
So how do I specify the
pattern value
in the following
<xs:simpleType name="charpAttrType">
<xs:restriction base="xs:string">
<xs:pattern value= ???????/>
</xs:restriction>
</xs:simpleType>
Or if any body could suggest an alternate way (probably a better way)
that would be awesome.
Thanks in advance
sP
Aug 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ray Tayek | last post by:
hi, trying to convert some csv files into xsml and pulling a few hairs out :(. using the files below. a java program will parse the csv and take care of strange names and notes that line breaks in...
2
by: monsterpot | last post by:
Hello, I have a document like this: <parameters> <param ptype="init">somedata</param> <param ptype="process">moredata</param> <param ptype="kill">alsodata</param> </parameters> <param> has...
2
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount...
0
by: Codex Twin | last post by:
hello group: The following is a fragment from a schema which defines the EWethnicCategoryStructure type. As you can see, its type is defined by the SimpleType enumeration EWethnicCategoryType....
5
by: LS | last post by:
Can a WebMethod return an Interface type? Can we pass an interface parameter ? Example : public interface IEntity { long Id { get; set; } string Name { get; set; } }
3
by: oziris | last post by:
hi ! I would like to write a schema for this kind of XML document <request> <params> <param1>foo</param1> <pouet>foo</pouet> <truc>bidule</truc> </params>
3
by: R.Schuetze | last post by:
Hallo, I'm working on an XSD schema for an 3D Point. The XML struktur of the point is the following: <Point name="6" target="Retro" type="TP" unit="m"> <param name="X" value="0.000"/> <param...
1
by: soccerdad | last post by:
I've got a class hierarchy generated from a .xsd schema file using the XSD.EXE tool. One of the elements will have its "inner text" set to a CDATA block. The XSD.EXE tool exposed a "Value" property...
0
by: Jason S | last post by:
I'm using RELAX NG but my question is about XSD datatypes. Is there any way to combine patterns? Right now I have this: (a chain of identifiers, the first being strict e.g. starting w/ letter or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.