We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tsantos
Posts: 14
Joined: Sat Jan 12, 2008 2:49 pm
Contact: ICQ

Problems with XML files

Hello!

I have Advanced Installer version 6.4.1 and I'm using it to create a installer of Web Applications that runs inside Tom Cat Web Server. I'm having problems with XML Files. The Original XML file has a tag that isn't appearing inside the XML after the installation.
The tag is:

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

I'm also having another problem with XML. The original XML file has empty tags like <value></value>. The installed XML file has only a tag <value/>. My Web Application does not work with the tag <value/>.

I need help and something to fix these errors.

Regards,

Thiago C S.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problems with XML files

Hi,
The Original XML file has a tag that isn't appearing inside the XML after the installation.
The tag is:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file and the target XML to support at advancedinstaller dot com so we can investigate it?
The original XML file has empty tags like <value></value>. The installed XML file has only a tag <value/>. My Web Application does not work with the tag <value/>.
This is done automatically if the entry is added in the project (it doesn't exist in the original file). Please note that "<value></value>" is the same as "<value/>" for any XML parser.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problems with XML files

Hi,

Unfortunately Advanced Installer doesn't support DOCTYPE declarations. However, for your project, you can try this approach:
- delete the XML you created
- add the original XML as a regular file (not in Windows Installer format)
- create a new XML file with the same name in the same folder
- create in it only the elements you want to update
- make sure that these elements use the "Update" option

If you need to update a lot of elements, you can import the XML and remove all elements which will not change. Basically, the editable XML should contain only the changed elements.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”