XML schema validation #4

I'm getting following errors in my schema validation  .

Error Message: The 'TimeSeries' element is not declared. An error
occurred at , (1, 2).
The 'http://alx.ml.com/mapsws:BoxColor' attribute is not declared. An
error occurred at , (1, 163).

It would be great if some one could tell me what Im doing wrong. ?
It works if I remove the targetnamespace and xmlns elements from
schema and xml files.
This TimeSeries object is passed as a parameter to my web service
method(GetTimeSeries). And the raw soap msg is adding the namespace

Here is the xml

<?xml version="1.0" encoding="utf-8" ?>
        <TimeSeries d4p1:XTitle="Date" d4p1:YTitle=""
d4p1:Y2Title="Y2" d4p1:YMin="auto" d4p1:YMax="100" d4p1:Y2Min="auto"
d4p1:Y2Max="auto" d4p1:Format="1" d4p1:Dec="3"
d4p1:BoxColor="Off_White" d4p1:BackColor="White" d4p1:AppToken="myapp"
              <d4p1:Legend>BMA 5Y Ratio</d4p1:Legend>

Here is the schema

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema elementFormDefault="qualified"
attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/
 xmlns:mapsws="http://alx.ml.com/mapsws" targetNamespace="http://
alx.ml.com/mapsws" >
 <xs:attribute name="Min" type="xs:string" default="auto" />
 <xs:attribute name="Max" type="xs:string" default="auto" />
 <xs:attribute name="Format" type="xs:int" default="1" />
 <xs:attribute name="Dec" type="xs:int" default="3" />
 <xs:attribute name="XTitle" type="xs:string" />
 <xs:attribute name="YTitle" type="xs:string" />
 <xs:attribute name="ChartTitle" type="xs:string" />
 <xs:attribute name="YMin" type="xs:string" default="auto" />
 <xs:attribute name="YMax" type="xs:string" default="auto" />
 <xs:attribute name="Y2Min" type="xs:string" default="auto" />
 <xs:attribute name="Y2Max" type="xs:string" default="auto" />
 <xs:attribute name="Y2Title" type="xs:string" />
 <xs:element name="MarkerStep" type="xs:int" />
 <xs:element name="Linewidth" type="xs:double" />
 <xs:element name="Legend" type="xs:string" />
 <xs:element name="StartDate" type="xs:date" />
 <xs:element name="EndDate" type="xs:date" />
 <xs:element name="COB" type="xs:boolean" />
 <xs:element name="ShowConstantLine" type="xs:boolean"
default="false" />
 <xs:attribute name="Height" default="400">
   <xs:restriction base="xs:int">
    <xs:minInclusive value="200" />
    <xs:maxInclusive value="1200" />
 <xs:attribute name="Width" default="800">
   <xs:restriction base="xs:int">
    <xs:minInclusive value="200" />
    <xs:maxInclusive value="1200" />
 <xs:simpleType name="Colors">
  <xs:restriction base="xs:string">
   <xs:enumeration value="Blue" />
   <xs:enumeration value="Red" />
   <xs:enumeration value="Green" />
 <xs:element name="Colors" type="mapsws:Colors" />
 <xs:simpleType name="Direction">
  <xs:restriction base="xs:string">
   <xs:enumeration value="Left" />
   <xs:enumeration value="Right" />
 <xs:element name="Direction" type="mapsws:Direction" />
 <xs:simpleType name="Axis">
  <xs:restriction base="xs:string">
   <xs:enumeration value="X" />
   <xs:enumeration value="Y" />
 <xs:element name="Axis" type="mapsws:Axis" />
 <xs:simpleType name="Markers">
  <xs:restriction base="xs:string">
   <xs:enumeration value="No_point" />
   <xs:enumeration value="Circle" />
 <xs:element name="Markers" type="mapsws:Markers" />
 <xs:simpleType name="MarkerSize">
  <xs:restriction base="xs:int">
   <xs:enumeration value="1" />
   <xs:enumeration value="2" />
 <xs:element name="MarkerSize" type="mapsws:MarkerSize" />
 <xs:simpleType name="LineStyle">
  <xs:restriction base="xs:string">
   <xs:enumeration value="solid" />
   <xs:enumeration value="dash" />
 <xs:element name="LineStyle" type="mapsws:LineStyle" />
 <xs:simpleType name="Frequency">
  <xs:restriction base="xs:string">
   <xs:enumeration value="Natural" />
   <xs:enumeration value="Daily" />
 <xs:element name="Frequency" type="mapsws:Frequency" />
 <xs:simpleType name="FrequencyDay">
  <xs:restriction base="xs:string">
   <xs:enumeration value="Monday" />
   <xs:enumeration value="Friday" />
 <xs:element name="FrequencyDay" type="mapsws:FrequencyDay" />
 <xs:simpleType name="FrequencyMonth">
  <xs:restriction base="xs:string">
   <xs:enumeration value="FirstOfMonth" />
   <xs:enumeration value="FifteenthOfMonth" />
   <xs:enumeration value="EOM" />
 <xs:element name="FrequencyMonth" type="mapsws:FrequencyMonth" />
 <xs:simpleType name="Period">
  <xs:restriction base="xs:string">
   <xs:enumeration value="OneMonth" />
   <xs:enumeration value="ThreeMonth" />
   <xs:enumeration value="SixMonth" />
   <xs:enumeration value="OneYear" />
 <xs:element name="Period" type="mapsws:Period" />
 <xs:complexType name="DatePeriod">
   <xs:element ref="mapsws:StartDate" />
   <xs:element ref="mapsws:EndDate" />
   <xs:element ref="mapsws:COB" />
 <xs:element name="DatePeriod" type="mapsws:DatePeriod" />
 <xs:complexType name="Security">
   <xs:element minOccurs="1" maxOccurs="1" name="sec" type="xs:string"
nillable="false" />
   <xs:element minOccurs="1" maxOccurs="1" name="field"
type="xs:string" nillable="false" />
 <xs:element name="Security" type="mapsws:Security" />
 <xs:complexType name="SecurityData">
   <xs:element minOccurs="1" maxOccurs="1" name="sec" type="xs:string"
nillable="false" />
   <xs:element minOccurs="1" maxOccurs="1" name="field"
type="xs:string" nillable="false" />
 <xs:element name="SecurityData" type="mapsws:SecurityData" />
 <xs:simpleType name="AggregateOps">
  <xs:restriction base="xs:string">
   <xs:enumeration value="Avg" />
   <xs:enumeration value="Max" />
   <xs:enumeration value="Min" />
 <xs:element name="AggregateOps" type="mapsws:AggregateOps" />
 <xs:complexType name="YAxis">
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:MarkerStep" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Colors" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:LineStyle" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Markers" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Linewidth" />
   <xs:element minOccurs="0" maxOccurs="1" ref="mapsws:Legend" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Direction" />
   <xs:element minOccurs="1" maxOccurs="1" name="tssecurity"
type="mapsws:Security" />
 <xs:element name="YAxis" nillable="false" type="mapsws:YAxis" />
 <xs:complexType name="ArrayYAxis">
   <xs:element minOccurs="1" maxOccurs="100" name="YSeries"
nillable="false" type="mapsws:YAxis" />
 <xs:complexType name="ConstantLine">
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Colors" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:LineStyle" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Linewidth" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:Axis" />
   <xs:element minOccurs="1" maxOccurs="1" ref="mapsws:AggregateOps" /
   <xs:element minOccurs="1" maxOccurs="1" name="csecurity"
type="mapsws:Security" />
 <xs:element name="ConstantLine" nillable="true"
type="mapsws:ConstantLine" />
 <xs:complexType name="ArrayConstantLine">
   <xs:element minOccurs="0" maxOccurs="10" name="ConstantLines"
nillable="true" type="mapsws:ConstantLine" />
 <xs:complexType name="TimeSeriesElements">
   <xs:element minOccurs="1" maxOccurs="1" name="yseries"
type="mapsws:ArrayYAxis" />
   <xs:element minOccurs="0" maxOccurs="1" name="period"
type="mapsws:Period" />
   <xs:element minOccurs="0" maxOccurs="1" name="dateperiod"
type="mapsws:DatePeriod" />
   <xs:element minOccurs="0" maxOccurs="1" name="frequency"
type="mapsws:Frequency" />
   <xs:element minOccurs="0" maxOccurs="1" name="frequencyday"
type="mapsws:FrequencyDay" />
   <xs:element minOccurs="0" maxOccurs="1" name="frequencymonth"
type="mapsws:FrequencyMonth" />
   <xs:element minOccurs="0" maxOccurs="1"
ref="mapsws:ShowConstantLine" />
   <xs:element minOccurs="0" maxOccurs="1" name="constantlines"
type="mapsws:ArrayConstantLine" />
 <xs:element name="TimeSeriesElements" nillable="false"
type="mapsws:TimeSeriesElements" />
 <xs:complexType name="TimeSeries">
   <xs:extension base="mapsws:TimeSeriesElements">
    <xs:attribute ref="mapsws:XTitle" use="optional" />
    <xs:attribute ref="mapsws:YTitle" use="optional" />
    <xs:attribute ref="mapsws:Y2Title" use="optional" />
    <xs:attribute ref="mapsws:ChartTitle" use="optional" />
    <xs:attribute ref="mapsws:YMin" />
    <xs:attribute ref="mapsws:YMax" />
    <xs:attribute ref="mapsws:Y2Min" />
    <xs:attribute ref="mapsws:Y2Max" />
    <xs:attribute ref="mapsws:Format" />
    <xs:attribute ref="mapsws:Dec" />
    <xs:attribute name="BoxColor" type="mapsws:Colors" use="optional" /
    <xs:attribute name="BackColor" type="mapsws:Colors"
use="optional" />
    <xs:attribute ref="mapsws:Height" />
    <xs:attribute ref="mapsws:Width" />
    <xs:attribute name="AppToken" type="xs:string" use="required" />
 <xs:element name="TimeSeries" nillable="false"
type="mapsws:TimeSeries" />

ycmahesh (3)
8/21/2007 11:31:44 PM
dotnet.xml 7266 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 23


Similar Artilces:

XML Header
Hi, I have some XML doc loaded in a C# Web Service. XmlDocument doc = new XmlDocument(); doc.LoadXml(myDoc); Code Missing to manipulate header (I would like to replace or manupulate all these XXXXX): <mso-XXXXXX productversion="XXXXXX"> <mso-application progid="XXXXX"?> doc.Save(myNewDoc); Any idea on how to access and manipulate data within the doc header? Thanks vbdev vb6dev2003 wrote: > I have some XML doc loaded in a C# Web Service. > XmlDocument doc = new XmlDocument(); > doc.LoadXml(myDoc); > > Code Missing to manipulate header ...

Read XHTML into XML
Hi all, I need to read/parse XHTML aspx pages and look for certain tokens and content. How can I use a XmlTextReader for this? If not, any other ideas? Thanks in advance, JA Reyes. Jose Antonio Reyes wrote: > I need to read/parse XHTML aspx pages and look for certain tokens and > content. How can I use a XmlTextReader for this? If not, any other ideas? If the pages are well-formed XHTML then it is possible to use XmlReader (in .NET 2.0/3.0) or XmlTextReader (in .NET 1.x) to parse the XHTML documents. You can also use the other XML APIs .NET provides so using XPathNavigator and/o...

How to invoke the xml editor?
I installed vs2005 on a new xp pro machine, and installed everything except C++. When I click on a file with a ".xml" extension it is opened with IE. When I click file/Edit with XML Editor, it opens it with Notepad. If I click File/Open With and select XML Editor, it opens it with IE. So, where is the xml editor? Can it be invoked from withing VS? Where? Bill * billsahiker@yahoo.com wrote in microsoft.public.dotnet.xml: >I installed vs2005 on a new xp pro machine, and installed everything >except C++. When I click on a file with a ".xml" extension it is >opened ...

show XML schema and values
I have an XML document that looks like the following: <record> <Field1>value1</Field1> <Field2>value2</Field2> <Field3>value3</Field3> </record> What I'm aiming to do is to show the data in a report as in the following example: record: Field1 value1 Field2 value2 Field3 value3 The "Field1-3"-elements can have any name, so I'm trying to get a table that has in one result column the element name, and in the second colum...

Validation List not showing external source.
I have a external reference on a Data Validation but the list will not show up unless I have the external reference spreadsheet open. I can manually type in the exact selection and it works fine. Unless I have the refernced spread sheet open, I can not see the list options. Is there a fix for this or is this a limitation on Excel? Any work arounds? David, Did you find the answer? --- Message posted from http://www.ExcelForum.com/ ...

Offline synch using XML web-services
This is a bit long-winded. Can somebody read thru these 2 use cases, and tell me if it is feasible ? :- Use Case : Replication before Offline Synch Scenario 1 : Oracle Server , MSDE client 1. User clicks on 'Go Offline'. System creates a MSDE SQL database in laptop (client), gets the schemas of the tables in Oracle, creates corresponding tables in client's MSDE SQL (mapping Oracle datatypes to SQL datatypes). 2. Offline replication program reads in the tables of the server into a typed datasets, converts the typed datasets into XML, and stores the XML in the client. (XML serial...

XML Serialization ... how to truncate <?xml...
While xml serializing object how can I truncate <?xml ...?> this line alone? I need to send the serialized xml data to a web method ... since SOAP already have <?xml tag there was some confusion Any help would be greatly appreciated Thank you Regards Raj Raj wrote: > While xml serializing object how can I truncate <?xml ...?> this line alone? Serialize to an XmlWriter created with XmlWriterSettings where you set OmitXmlDeclaration to true. -- Martin Honnen --- MVP XML http://msmvps.com/blogs/martin_honnen/ ...

error adding new Schema Field 04-21-04
Hi, When I attempt to add a new schema field to the "Lead" object in the Deployment Manager, I get the following error: "An error occured during the addtion of the new field. The addition failed." In the event log, I there are two relevant entries: "dmLog: Failed to add new Picklist attribute (CFPsolution) to Lead entity" and "dmLog: sp_repladdcolumn failed. - Timeout expired" I've previously successfully added a pickup list called "Sector" with 9 values. Therefore I don't think I've exceeded the 8000 char row limit. Apart from...

String to xml document
Hi there, I was hoping someone can help me with a little problem I can't seem to find any answers to. I've got a form wich will be posted. On receiving the post I would like to parse a formvar to a xml document. The contents of this formvar (string) will be a valid xhtml document. Can someone give me a startertip (or more :-)) on how to achieve this? tnx in advance, James van der Veen Sjeems wrote: > I was hoping someone can help me with a little problem I can't seem to find > any answers to. > > I've got a form wich will be posted. On receiving the p...

Beginner of XML
I am a beginner of XML. I want to group some files together with a xml file. (it includes a text file, and an image file and a video file) Can someone show me some guidelines? Please help. ...

Valid xml to read from an xml file?
I'm using vb.net, i get an error at the reader line saying the remote server can't be found. Is the below even valid? dim reader as XmlTextReader reader = new XmlTextReader ("http://www.mysite.com/my.xml") do while (reader.Read()) 'do some action here response.write(reader) loop thanx chumley XmlTextReader uses System.Net.WebRequest under the covers -- see if you can figure out how to create a connection that way. Usually there's some proxy server information missing that you can enable if you use WebRequest directly, and then pass the result of GetResponse()...

Example eConnect XML documents
MSDN says the following: Installing eConnect schema When you include the schemas component of the eConnect install, the installer places schema files in a schemas folder on your computer. The following schema resources are available: The install places the .xsd schema files in the directory c:\Program Files\Microsoft Great Plains\eConnect9\XML Schema\Incoming XSD Individual Schemas. The files in the directory contain the schema for each eConnect XML document. The install places a file named eConnect.xsd that contains the schema definition for all eConnect XML documents. The install typicall...

Saving DataSet as XML in ADO format using VB.NET
Hi, I am trying to convert a lot of web reports from ASP/VB to ASP.NET/VB.NET. I would like to save my dataset in XML and then use XSLT to transform the XML. The catch is I would like to have the XML in the format that ADO uses versus the default format in which ADO.NET uses. Currently, I am using ADO within .NET, but I am concerned about the performance and it might improve if I used the native data providers for .NET. I am not sure if I am missing something but how do I save the .NET DataSet to XML in the OLD ADO format? Thanks for you help in advance and it is most appreciated. In the ...

XML variable for description on receipt?
Hi, I would like to add a description (actually all of those 3 extended descriptions) to display on the printed receipt under the main description. What is the variable to do that? Entry.Item.Description Entry.Item.ExtendedDescription Entry.Item.SubDescription1 Entry.Item.SubDescription2 Entry.Item.SubDescription3 R. "Zorian" <Zorian@discussions.microsoft.com> wrote in message news:F4425EAC-62B6-46FE-826A-D8BA2AA75DBB@microsoft.com... > Hi, I would like to add a description (actually all of those 3 extended > descriptions) to display on the printed receipt un...

data validation list from two columns
I have a list of every county, parish and borough in the US in a worksheet, like this: A B 1 HI Kauai County 2 HI Maui County 3 ID Ada County 4 ID Adams County 5 KY Adair County 6 KY Harlan County I would like to create a data validation list so that a user can quickly lookup county level data--accessed by an Index and Match formula. I hope to accomplish two things: 1) not force the user to scroll through all 3,000 county names 2) keep seperate Washington County in TN from Washington County in GA, IL, KY, etc. Assuming your list is sorted by state, you could use ...

SP1 #4
Is there anyway to determine when SP1 for exchange was installed or if it was installed? I know with Winodws updates a log file is created with the update number in the winnt directory. In Exchange System Manager, go to the Servers container. In the right pane, it should show a list of all servers and their versions. Version number (and service pack number) will be listed in one of the columns. -- Ben Winzenz Exchange MVP MessageOne Read my blog! http://winzenz.blogspot.com http://feeds.feedburner.com/winzenz (RSS Feed) "George Schneider" <georgedschneider@news.postali...

Autocomplete not working #4
Autocomplete is not working on my wife's Outlook (2007) account on my (Vista SP2) machine. Outlook help tells me I should find an .nk2 file in user\AppData\Local\Microsoft\Outlook. In both my case and my wife's, this file is actually in user\AppData\Roaming\Microsoft\Outlook; but in my case, autocomplete works with the file in this position, but it doesn't in my wife's account. Moving the file in my wife's account to what Outlook Help says is the correct place doesn't work either. Of course the option to suggest names while completing To, Cc, and Bcc fields is ti...

Validation and Lookup
Im am creating a Price Inquiry tool... I am just having problems when it comes to the lookup for the prices... I have A1 as the Item Category drop down and B1 as the Item drop down... I want C3 to return the price of the item once B1 already has the exact item to lookup... I created the A1 and B1 as dependent drop down list. A B C 1 Gardening Water Hose Price Need help.. Please advise From what i understand is that you want column C to return the price of the item if column A is selected and column B, you select 'price' from t...

We had a CRM 4 setup which was working successfully: - Server 1 is a Windows 2003 Server with CRM Server installed - Server 2 is a Windows 2003 Server with SQL 2005, Reporting Services with CRM Data connector installed The SQL 2005 server was upgraded to SQL 2008 Enterprise. After the installation and rebooting, the CRM Server was working apart from Reports. REPORT ERROR MESSAGES ====================== When a report is run from a CLIENT machine, the following error appears - "The request failed with HTTP status 401: Unauthorized." [WebException: The request failed with HTTP status...

Notes Schema Name
Hi all, Can anyone please tell me what is the notes schema name and whether or not I can apply a java script on it - in the onload or onsave options in the form. Tnx alot.. Hi, The schema name is Annotation. However it is not possible to customize the onload/onsave event the way you can do it with the other entities. However a callout is supported. You can write code for Create, Update, Delete and Assign. Hope this helps, Merijn van Mourik http://crmerijn.blogspot.com "Guy Shokrani" wrote: > Hi all, > > Can anyone please tell me what is the notes schema name a...

Valid Headers for Exchange 5.5 Export
Hi, I need to Export all permissions on all mailboxes in a specific container in Exchange 5.5. Does anybody know the correct headers used for this? Thanks in advance! ...

xml to SQL
Hey we have a project in which a company produces a XML page in reply to actions on it's site. I see that SQL 2000 works well with XML so Can someone point me in the right direction, I would like to take the XML from thier SQL and have it "post" to own sql server (add,create, data, modifity and delete data on the fly). I was looking at doing XML to HTML and then passing to some a ASP but if we can grab from the responsetext then we could save time and headaches. Now I really know next to nothing about XML but I am reading all the newsgroups and pulled now TONS of xml / sql stuff ...

Printing 4 sheets on one page
Any way to print 4 sheets as one continuous printout? Right now it shows each page, even though its grouped, as a separate printout in print preview. Excel 97, yes 97! You have at least a couple of choices: #1. Insert a new sheet and copy the data from the 4 worksheets into this one and print from there (yech!). #2. Insert a new sheet and copy a picture of your data into this worksheet and print from there (yea!). Insert the new sheet Do this for each worksheet Select your range edit|copy back to the new sheet shift-edit|paste picture link (by pasting a picture link, the picture will...

new xml file is larger than the original
i'm working on a windows application that will edit and create xml files from another application. the original file is 83k, the one created by my vb.net program is 153k but all i add is a new xmlelement when i use the other program and add a xmlelement is only increased the file to 85k. how come my application increased 70k in size and also added the <?xml version="1.0"?> when i didn't tell it to. how do i duplicated a xml file and only add the xml element that i want to insert. where did the extra 70k come from. thanks here is my code: Dim newEvtEnr...

4.4.7 smtp error
Hi! I have a email server running almost perfect, just got this issue with a few costumers trying to send email to me. They get the nds 4.4.7. One of them are sending from smtp.varberg.se. I wonder if someone new if I am on the right track when I look at the reverse dns for my mailserver? Or can it be the ttl time to answer. My domain is bandersson-akeri.se Would be happy if someone could give me some ideas on this one. Regards Surfer "Surfer" <Surfer@discussions.microsoft.com> wrote in message news:9EC28E83-6AA1-464D-8377-2D543B35DAFA@microsoft.com....