× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Please show us the relevant XML Mike.

I _think_ I know what you mean but since unnamed fields as such don't exist in XML I'm mostly guessing without seeing the XML.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Apr 1, 2019, at 9:56 AM, Smith, Mike <Mike_Smith@xxxxxxxxxxxxxxxx> wrote:

I have an xml file I am trying to process. I've got the majority of it working but I have a number of elements I'm not getting results. I think I need to make adjustments to my options, but I haven't found the correct option yet.
I have a 2 main issues, although one of them really doesn't matter, but I'm curious how to handle.


1. Product
srsName
concise-name
operational-mode
title
field
category
creation-date

anything with the - in it does not process.
I get errors in the compile if I use the - in the field names
If I try to change from say concise-name to concisename it simply doesn't populate.
How should I handle fields with the -?



2. Moreweatherinformation
Applicable-location
'a field with no name' but it has a value

So this one has what appears to be 2 elements, but one does not have a name
I've tried just making up a name, but that obviously doesn't work.
How would you handle this?


%XML(XMLFile: 'doc=file +
datasubf=data +
allowmissing=yes +
allowextra=yes +
countprefix=count +
ns=merge +
case=any');

I've also tried ns=remove

Thanks

Mike
NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.