Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

ASSET.IMPORT

Parses XML and sets Sites variables which can then be gathered to set values in the asset.

Note

If you use ASSET.IMPORT to gather values into a flex asset, you must provide an asset subtype using the SUBTYPE parameter.

Syntax

Parameters

NAME (required)
Name of the asset instance object.

PREFIX (required)
Prefix to use when setting ICS variable names. The variable names are prefix:attribute.

XML (required if FILE not specified)
XML code that is parsed.

FILE (required if XML not specified)
Path to file containing XML code that is parsed. This parameter takes precedence over XML.

PUBID (optional)
Site (formerly publication) ID.

SUBTYPE (optional, unless using this tag for a flex asset)
Asset subtype.

Error Numbers

The possible values of errno include:

Value
Description
-408
Bad XML syntax.
-10004
A required parameter is missing.
-10005
The requested object is not in the object pool (is not loaded into
memory).
-12004
An asset was not found for a specified ID.
-12037
Required field missing.
-12038
Incorrect data type.
-12043
Data out of range.
-12060
A field sent to the save asset function (after XML parsing) was too long.
-12066
No subtype supplied or the supplied subtype is incorrect.

Example

The following code is an example of how to export a simple asset and import it in a newly created asset. This code exports a 'Collection' with id 968769614795 and then imports it into the new asset.

See Also

ASSET.EXPORT

  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.