Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 8th, 2018, 11:53 PM
Friend of Wrox
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default How Do I Set A Variable To Have Value= 5 Based On Conditions In Vb.Net?

Using the following xml document, I need help in vb.net. I would like to set a variable (e.g InCustody) to have value = 5 when /[JuvenileCitationDocument or CitationDocument]/Citation/Citee/InCustodyIndicator = True
How do I do this?

I am considering putting the xml document into an object e.g. objXMLInputDoc. This document (CitationDocumentBatch) will have or can have many CitationDocuments and or JuvenileCitationDocuments.
I will then look into this document for each CitationDocument and or JuvenileCitationDocument.
When I find InCustodyIndicator = true (a child element) of a CitationDocument or JuvenileCitationDocument then I want to set a variable to have 5 as it's value.
I will use this value later on.

	<JuvenileCitationDocument >

Last edited by winkimjr2; August 9th, 2018 at 08:41 AM.. Reason: I explained in more detail what I am would like to do in vb.net

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic line wrapping based on conditions-Need expert help sen1953 XSLT 1 July 30th, 2013 02:34 PM
Dynamic line wrapping based on conditions-Need expert help sen1953 XSLT 0 July 13th, 2013 07:28 AM
for-each conditions based on row selections santhakumar XSLT 0 July 12th, 2013 07:59 AM
skip creating tag based on conditions sudheer.raju XSLT 3 December 20th, 2011 06:56 AM
selection based on conditions rajesh_css XSLT 3 October 2nd, 2008 08:06 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.