Return-Path: Delivered-To: apmail-xerces-c-users-archive@www.apache.org Received: (qmail 52479 invoked from network); 22 Jan 2007 18:13:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2007 18:13:59 -0000 Received: (qmail 30175 invoked by uid 500); 22 Jan 2007 18:14:04 -0000 Delivered-To: apmail-xerces-c-users-archive@xerces.apache.org Received: (qmail 30160 invoked by uid 500); 22 Jan 2007 18:14:04 -0000 Mailing-List: contact c-users-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-users@xerces.apache.org Delivered-To: mailing list c-users@xerces.apache.org Received: (qmail 30149 invoked by uid 99); 22 Jan 2007 18:14:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2007 10:14:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.43.210.32] (HELO fileserver.collectiveData.local) (66.43.210.32) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Jan 2007 10:13:55 -0800 Received: (qmail 22691 invoked by uid 0); 22 Jan 2007 18:01:10 -0000 Received: by simscan 1.1.0 ppid: 22685, pid: 22686, t: 0.1040s scanners:none X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on fileserver X-Spam-Level: Received: from unknown (HELO ?192.168.254.150?) (192.168.254.1) by 0 with SMTP; 22 Jan 2007 18:01:10 -0000 Message-ID: <45B4FED6.2080900@collectivedata.com> Date: Mon, 22 Jan 2007 12:13:42 -0600 From: Timothy Strimple User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: c-users@xerces.apache.org Subject: Retrieve list of valid children based on element name. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.1.7 I'm trying to setup a system that will allow me to dynamically build xml documents based on a schema. I've successfully implemented PSVI thinking that would be all I needed to build the list I wanted, however it only seems to build a list of children that are actually in the xml, not what is defined within the schema. For example, in the case of an optional attribute, it doesn't show up unless the xml document contains it, even though it's allowed via the stylesheet. I basically just need a list of valid elements and attributes for a particular element. Is there a way to build this list using xerces? Thanks, Timothy Strimple