XML validating and writing at the same time

I am receiving XML data that I would like to validate against my schema and
write at the same time.

Some of the data is optional, if the data in the optional elements is
incorrect, I would like to write blank data to that element, and then
continue validating against my schema.

Any ideas?

-={Brian Kedersha}=-
kedershab@cox.net


0
bkedersha (3)
12/23/2003 3:45:17 PM
dotnet.xml 7266 articles. 0 followers. Follow

1 Replies
665 Views

Similar Articles

[PageSpeed] 53

Brian,

Interesting problem. I don't think there is an easy way to do this. Did you
think of a way to approach it?

-- 
Kathleen Dollard
Microsoft MVP
Author "Code Generation in Microsoft .NET"


"Brian Kedersha" <bkedersha@aol.com> wrote in message
news:u3nWxuWyDHA.2396@TK2MSFTNGP10.phx.gbl...
> I am receiving XML data that I would like to validate against my schema
and
> write at the same time.
>
> Some of the data is optional, if the data in the optional elements is
> incorrect, I would like to write blank data to that element, and then
> continue validating against my schema.
>
> Any ideas?
>
> -={Brian Kedersha}=-
> kedershab@cox.net
>
>


0
1/1/2004 3:06:03 AM
Reply:

Similar Artilces:

Serializing Array with array "name" in the XML
I need help serializing an array without including the array "name". I am writing in C# and using the XmlSerializer to serial classes. I am trying to serialize a class with an array in it like the one below. public class myclass { public imagecontext; public myimage[] images; } public myimage { public string name; public string path; } It will serialize something like this... <myclass> <imagecontext>my context</imagecontext> <images> <myimage> <name>Image1</name> ...

how do i do 3 data validations?
If i have a cell C18 with list values "25-51-91","25-51-82","25-51-54" "25-51-55","25-50-23" a cell c19 with list values"0", "1", "E" and cell C8 values "UA 115180-4, UA 115169-1,UA 115169-5, UA 115163-5H, 3DF-A35-11D-G" and when i select C8= UA 115180-4 ,c18 should be "25-51-91" c19 should be 0 when i select UA 115169-1,UA 115169-5, UA 115163-5H c18 shld be 25-51-82,25-51-54,25-51-55 cell c19 value should be 1 when i select 3DF-A35-11D...

Unable to update free/busy time
Hi there, This morning I installed the Exchange 2000 post-sp3 rollup on our small business server. Since then users have been getting messages from Outlook saying that it can't update free/busy time on the server. Prior to installing the rollup we did not get the errors. I had a look at the event log on the server and it is filling up with EventID: 1546 errors, the description is: Workflow event sink error [event: OnSyncSave, URL: <file://./backofficestorage/test.com.au/Public Folders/NON_IPM_SUBTREE/SCHEDULE+ FREE BUSY/EX:_xF8FF_o=DSPACE_xF8FF_ou=first administrative group/USER-_xF8...

Validation Data & Goto question
Hi Everyone, I tried this on my own, but got a big headache and no result. I have an excel spread sheet with 9 columns and about 3000 rows of just text. One of the columns has vendor names (column F) and their products. So, for one vendor, there may be one or 100 products listed in rows until next vendor starts. On top of this column I have a "validation listbox" with the list of vendors. If I click & drop down the list, I can pick any one of the vendor names. Then I wanted to go to a row containing first occurrence of that vendor's name. Almost like one would be using V...

Run-time error '5'
Hello, I'm getting a weird error on one of our computers. As soon as I open Excel and click anywhere on the sheet, I get an error: Run-time error '5' Invalid procedure or call argument This is just a blank document, with no macros or VBA code. Why am I getting it? I would appreciate your help. Thank you, -- Peter Afonin Hi try removing all add-ins -- Regards Frank Kabel Frankfurt, Germany Peter Afonin wrote: > Hello, > > I'm getting a weird error on one of our computers. As soon as I open > Excel and click anywhere on the sheet, I get an error: > ...

xml config file...
hello, I ve a Windowsapplication with a configuration file app.config... (it's in xml) code app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name = "MyNameValueSection" type="System.Configuration.NameValueSectionHandler" /> </configSections> <MyNameValueSection> <add key="MyKey" value="MyValue" /> </MyNameValueSection> <appSettings> <add key="test" value="MeinInhalt" /> </appSettings> </configurati...

2 criteria cells used to select which validation list to use
Greetings All: (Excel 2003) I'm trying to "clean up" various workbooks and consolidate into one workbook (probably about 75 sheets, when done). I have come to the conclusion that, for clarity of my formulas, I should have used range names. I have the Name Manager, version 3.2 from Jan Karel, which hopefully will prove to be more than a little useful. My current problem relates to the use of validation, based on info from two cells, (either/or), and requiring a result of 1 of 2 validation lists. I hope the following is clear. Cell C3: Truck Cell D3 = 0 (not applicable) or 1...

writing meeting notes with DAte stamps
I am new to Outlook coming from ACT and trying to understand best way to take notes, attach to contacts and make sure the date is automatically input in notes. I would loveto use one program to manage my contacts, but Act has been very easy to use. -- Pete H what version of outlook? -- Diane Poremsky [MVP - Outlook] Outlook Tips: http://www.outlook-tips.net/ Outlook & Exchange Solutions Center: http://www.slipstick.com/ Outlook Tips by email: mailto:dailytips-subscribe-request@lists.outlooktips.net EMO - a weekly newsletter about Outlook and Exchange: mailto:EMO-...

Render XML data island to HTML?
I have an XML data island in my aspx web page. The XML includes a link (processing instruction) to an XSL stylesheet. Is there any way on this page to view the HTML, that results from the xsl transformation, as the contents of, say, a div? I know I can do it if I display only the XML in IE, but I don't know if I can do it as a fragment of an existing HTML page. TIA > I have an XML data island in my aspx web page. The XML includes a link > (processing instruction) to an XSL stylesheet. Is there any way on this page > to view the HTML, that results from the xsl transformation, a...

XML error "Some Data Was Imported As Text"
Daily, I recieve a 3rd party XML file that I parse in Excel (using an excel macro) and then import into an Access database. Infrequently, the data will import into Excel, then parse and then the routine stops with the error message above. I look through the raw XML file and everything appears to be within the brackets, etc. Can someone give me some clarification to the meaning of the error message? Thanks in advance and Mery Christmas and Happy Holidays! The error message might be generated within your macro - as it is parsing the data it might detect that some field which should be ...

Total Minutes Worked Within IVR Timing
Hi, I need to figure out how many total minutes employee worked during the IVR Timing. Each employee works different shift and it can run overnight into next morning where there may be IVR coverage before employee logs out. IVR Timing is same for Saturday/Sunday and same from Monday to Friday. IVR Timing Table; data type is Date/Time but only Time is available because date should be same as the schedule date DayIs IVRStart IVRStop Sunday 10:00:00 AM 6:00:00 PM Monday 9:00:00 AM 9:00:00 PM Tuesday 9:00:00 AM 9:00:00 PM Wednesday 9:00:00 AM 9:00:00 PM Thursday 9:00:00 AM ...

include busy/free time from "other" (i.e. ics) calendars
Please see the following thread. Is this possible? Could it be added as a future enhancement request? https://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.calendaring&mid=d5f088c7-77a7-48c5-8a9b-a1955f90aacc&sloc=en-us ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and t...

valid FirstName value
Hello everyone, Anyone know how to search for a valid FirstName in a field? eg.: Himansu Rich Anna Tom .... I don't want junk like this: AA, 0, "Himansu" 'Rich' Any assisatance will be greatly appreciated. Have a nice evening. Thanks, Himansu How about "Gert-Jan"? //Peter "Himansu" <himansu114@hotmail.com> wrote in message news:u3#lXzwZKHA.6028@TK2MSFTNGP04.phx.gbl... > Hello everyone, > > Anyone know how to search for a valid FirstName in a field? > > eg.: > Himansu > Rich ...

Writing XML from Dataset to Response Object as Binary File
I have looked fot his solution, but Im not sure what to search for. I have an asp.net based report. I need the user to be able to download an XML file of the results so they can use the data in Excel, etc. I do NOT want to write the file to the server first. I just want to be able to write the contents of the Dataset into a binary file and send it back out to the user as a download, but all in memory. Can you give me a boost in the right direction or an article that demonstrates this? Dan Hanover wrote: > I have an asp.net based report. I need the user to be able to download &g...

total of a range of times
This should be simple for some of you, but not for me. I am a runner, I have 4 ind. cells w/my split times. How do I get a total for the tallied times. I'm far from being experienced but am trying to learn..any and all help will be much appreciated. Thanks, Roger Roger To help you in your quest to "try to learn" I will direct you to Chip Pearson's site so's you can learn just about all you'll ever need for Time Calculations. http://www.cpearson.com/excel/datetime.htm#AddingTimes Gord Dibben Excel MVP On Sat, 13 Nov 2004 15:19:02 -0800, "Roger WG" &...

Autoformat dates and times
Hi, I have a workbook with two columns. In the formula bar of one of the cells i have 2005040101700 (YearMonthDateHoursMinutes), but what shows in the cell is 2.00504E+11 When I try to format the cell as yyyymmddhhmm I get ########### and when I put the cursor over the cell with ############### it says that negative dates and times are shown this way. How can I make this work? Thanks. Allison Allison, I'm hoping that your actual value is different: 2005040101700 doesn't make sense: year 2005 month 04 day 01 hour 01 minutes 70 seconds 0 Perhaps it's really 200504010...

Why does Outlook's message recall feature work sometimes but not all the time?
Basically my users have a problem with message recall. The problem is sometimes it works but most of the time it doesn't. Even more frustrating is when they get a successful recall notification message and then they get a reply to the message that was supposedly recalled successfully! Can anyone give me a straight answer or point me in the direction of a reliable article on message recall. www.winnetmag.com has an article that you have to pay for and Microsoft just explains how to use it. Thanks in advance, Chet Senior Customer Support Specialist Message recall is really unr...

Keeping Validation References When Breaking out Spreadsheets Using
Hello, I am using a version of Ron Debruin’s macro that breakouts spreadsheets into separate spreadsheets using a filter on a selected column. The issue that I am having is that I have a series of validation references located in the main sheet in hidden rows (rows 1-14 are hidden). I need to be able to retain these references in all the newly created sheets and retain the fixed references. How do I do this? Thanks in advance. Modified Ron Debruin Macro Sub FPR_Breakout_Worksheets() Dim calcmode As Long Dim ws1 As Worksheet Dim ws2 As Worksheet Dim WS...

Publisher 2007 will not open my old files
What to do? All of a sudden, my Publisher 2007 will not open any of my publisher files, even others done in publisher 2007. It crashes EVERY TIME. I have run Office Diagnostics twice, with no result. I have uninstalled and reinstalled Office 2007 TWICE, still no change. Do I just abandon it and go back to Publisher 2003? I've run virus scans, defragged, tried other versions of these files, tried files done by others - NOTHING works. it will start a new project, but will not open an old project without crashing. Can I install Publisher 2003 and use it even though I have Office ...

Downloaded transactions must be re-accepted every time
I bought Money 2005 last week and got it all set up. But when I turned on the auto-reconcile downloaded transactions option, I found that every transaction it pulled from my bank servers for the last month had to be re-accepted even though it had been downloaded, accepted, and reconciled. Turning this option off didn't fix the problem. It is very frustrating because I can't tell what's new and what's not now. It treats all my old dowloaded and reviewed transactions as something new. Anyone know why or how to fix it? In microsoft.public.money, BASIC since TRS-80 wro...

at times i have to reboot to start Outlook 2003, any help?
it would be appreciated Sounds like you have a 3rd party application or addin that isn't letting Outlook close properly. Try bringing up the task list (start > run > tasklist.exe > ok button) to see if Outlook is still running when it won't start. (check the processes tab) "skimmi" <skimmi@discussions.microsoft.com> wrote in message news:42FAFCC7-55BC-45DB-B8D7-674FF9638B14@microsoft.com... > it would be appreciated Not sure if this helped or not? The problem did happen again and tried what you suggested but the screen only flashed up momentari...

rpc over http long logon time
How long should it take after Outlook starts before the prompt appears and asks for the password? Then afer that, how long before Outlook connects and starts downloading mail? Ours takes from 30 seconds to a minute for both steps. User are very confused why they start Outlook and have to enter their password a minute later, and still can't use Outlook for another minute. Thanks, Neal ...

Outlook 2003 POP save on server x days
Hi, In Outlook 2003 - Accessing POP3 Mail - When you select save on server x number of days - When does the time count for days begin? Lets say I have old E-Mails in Outlook - and on the server - I choose to leave on server 30 days - Will all E-Mail older than 30 days be removed from the server - immediately? Or will the time count 30 days from when I chose to leave them on the server - so 30 days from when I chose to leave on server for x days - they will begin being removed from the server? Thank You it's 30 days from the date you downloaded them into outlook. I...

Repeat values in column A a certain number of times depending on the value in column B
Imagine a set of data as set out below: Column A Column B Apples 24 Pears 36 Oranges 8 I want to poplulate a column (for exampel column A on a new sheet), where the values in column A will be repeated as many times as the value in column B Thus the first 24 rows will say Apples, the next 36 rows will Pears, Oranges. I need a formula that recogonizes that when it gets to row 25 that it should no longer need to copy Apples, but then switch to pears. This might sound like an unusual request but if I can grasp a way to do this I can create the table I need and populate the rest...

Time total
Hello All, I need some help with creating a query to sum a total time of a field. I have a table called client services and have a query which pulls: date of service, total time, and provider name. I would like to be able to create a query which will sum the total time field. I have look at other posts on here but am still confused. Also not sure what time set to use: minutes or hour/minute format. Thanks for your help, -Mark Mark, I assume that you want to total time across clients, do you want to do it for a specific period, (June 07) or just get the total time? To get the total ...