RE: [U2] XML question on UniData 6.0

2005-09-20 Thread Keith W. Roberts
I think you're pretty much stuck with doing it in your program.  You might
subroutine it and call it when  is encountered.  At least then it'll
be useful for similar schema.

-Keith

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Metherall, Arthur
> Sent: Tuesday, September 20, 2005 4:54 AM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] XML question on UniData 6.0
> 
> Hello,
> 
>   Sorry I wasn't clear.
> 
>   Yes, I want to load a single UniData internal or external 
> date field from the XML date fields.
> 
>   Instead of having to save them as three individual fields 
> and then combine them in an I-Type or doing it inside my 
> UniBasic program.
> 
>   How do I need to define my Unidata 6.0 XML extraction file 
> to do this?
> 
>   Thanks.
> 
> - - - - - - - - - - - -
> Arthur E. Metherall
> Sr. Programmer Analyst
> Courier Corporation
> - - - - - - - - - - - -
> 
> -Original Message-
> From: Metherall, Arthur 
> Sent: Monday, September 19, 2005 10:57 AM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] XML question on UniData 6.0
> 
> 
> Yes, you've read this before.  But all the XML experts must 
> have been on vacation, so I'm posting it again in hopes that 
> they 're back.
> 
> Is there a way to define the following XML section in a 
> Unidata 6.0 extraction file, so that it will give me a single 
> date (07/20/2005) value/DICT entry, without having to define 
> individual Month (07), Day(20), Year(2005) DICT items and 
> then using an I-Type to rebuild it?
> 
>   
> 
>   2005
>   07
>   20
> 
> 14:47:45
>   
> 
> This is a predetermined XML format for handling dates with 
> our customers, I can't change the structure.
> 
> Thanks,
> 
>   Arthur
> 
> - - - - - - - - - - - -
> Arthur E. Metherall
> Sr. Programmer Analyst
> Courier Corporation
> - - - - - - - - - - - -
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] XML question on UniData 6.0

2005-09-20 Thread Metherall, Arthur
Hello,

  Sorry I wasn't clear.

  Yes, I want to load a single UniData internal or external date field from the 
XML date fields.

  Instead of having to save them as three individual fields and then combine 
them in an I-Type or doing it inside my UniBasic program.

  How do I need to define my Unidata 6.0 XML extraction file to do this?

  Thanks.

- - - - - - - - - - - -
Arthur E. Metherall
Sr. Programmer Analyst
Courier Corporation
- - - - - - - - - - - -

-Original Message-
From: Metherall, Arthur 
Sent: Monday, September 19, 2005 10:57 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] XML question on UniData 6.0


Yes, you've read this before.  But all the XML experts must have been on 
vacation, so I'm posting it again in hopes that they 're back.

Is there a way to define the following XML section in a Unidata 6.0 extraction 
file, so that it will give me a single date (07/20/2005) value/DICT entry, 
without having to define individual Month (07), Day(20), Year(2005) DICT items 
and then using an I-Type to rebuild it?

  

  2005
  07
  20

14:47:45
  

This is a predetermined XML format for handling dates with our customers, I 
can't change the structure.

Thanks,

  Arthur

- - - - - - - - - - - -
Arthur E. Metherall
Sr. Programmer Analyst
Courier Corporation
- - - - - - - - - - - -
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] XML question on UniData 6.0

2005-09-19 Thread Keith W. Roberts
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Monday, September 19, 2005 8:19 AM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] XML question on UniData 6.0
> 
> [EMAIL PROTECTED] wrote:
> > Yes, you've read this before.  But all the XML experts must 
> have been on
> > vacation, so I'm posting it again in hopes that they 're back.
> > 
> > Is there a way to define the following XML section in a 
> Unidata 6.0 extraction
> > file, so that it will give me a single date (07/20/2005) 
> value/DICT entry,
> > without having to define individual Month (07), Day(20), Year
> > (2005) DICT items and then using an I-Type to rebuild it?
> 
> Use an I-type to rebuild what? Why not just create Day, Month 
> and Year as i-types that do the conversion (or as synonyms).
> 
> I'm using UV syntax, but I'd either create a D-type called eg 
> Year with a conversion field (field 3) of "D2[Y4]" (or 
> whatever the correct syntax is, or an i-type with a location 
> field (field 2) of "OCONV(..., "D2[Y4]")".
> 
> I don't know if the first syntax would work in UV, so I 
> certainly don't know if it would work in UD ...
> 
> Not knowing what you mean by "rebuild", I can't offer any 
> further hints...
> 
> Cheers,
> Wol

I think what he's saying is that he doesn't want to define A|S|D descriptors
(separate fields) for day, month and year; instead he wants a single UV
field DATE, containing an idate constructed from the 3 XML entities.

-Keith
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] XML question on UniData 6.0

2005-09-19 Thread u2
[EMAIL PROTECTED] wrote:
> Yes, you've read this before.  But all the XML experts must have been on
> vacation, so I'm posting it again in hopes that they 're back.
> 
> Is there a way to define the following XML section in a Unidata 6.0 extraction
> file, so that it will give me a single date (07/20/2005) value/DICT entry,
> without having to define individual Month (07), Day(20), Year
> (2005) DICT items and then using an I-Type to rebuild it?

Use an I-type to rebuild what? Why not just create Day, Month and Year as 
i-types that do the conversion (or as synonyms).

I'm using UV syntax, but I'd either create a D-type called eg Year with a 
conversion field (field 3) of "D2[Y4]" (or whatever the correct syntax is, or 
an i-type with a location field (field 2) of "OCONV(..., "D2[Y4]")".

I don't know if the first syntax would work in UV, so I certainly don't know if 
it would work in UD ...

Not knowing what you mean by "rebuild", I can't offer any further hints...

Cheers,
Wol
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] XML question on UniData 6.0

2005-08-04 Thread Kevin King
Not sure about the baked in XML features, but you could certainly do
it with BASIC without a lot of difficulty.

-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/