473,224 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

XMLSerialization Suppress Element Name to Mimic HTML Anchor Tag

I am trying to mimic the html anchor tag. I have created a class;

Public Class anchor
<XmlAttributeAttribute()> _
Public href As String
Public title As String
End Class

and get the following XML;

<a href="http://www.GM.com">
<title>GM</title>
</a>

when I would like to get;

<a href="http://www.GM.com">GM</a>

Is there a way to modify the class definition to suppress the <title> and
</title> tags? Thank you in advance for any advice.
--

Best Regards
Todd
Nov 12 '05 #1
1 1531
"Todd" <To**@discussions.microsoft.com> wrote in message news:DF**********************************@microsof t.com...
Public Class anchor
<XmlAttributeAttribute()> _
Public href As String
Public title As String
End Class : : I would like to get;

<a href="http://www.GM.com">GM</a>


Todd, try the XmlTextAttribute. You're allowed to use it on up to one field
within a class.

- - - anchor.vb (excerpt)
Public Class anchor
<XmlAttributeAttribute( )> _
Public href As String
<XmlTextAttribute( )> _
Public title As String
End Class
- - -

Derek Harmon
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fezboy | last post by:
Greetings! I'm trying to import elements declared in the METS and MODS XML Schema into my own. I've gotten to the point where the xsd validates, but when I try to validate a document against...
0
by: Tag | last post by:
Altova StyleVision has good features for generating hyperlinks with both static and dynamic segments. But I don't quite see how to create an anchor in the same document, so I can, for example,...
22
by: Haines Brown | last post by:
I have a document with a set of internal links such as: <a name="Z1"></a>... <a name="Z2"></a>... The W3C validator objects to the first instance of the name attribute: There is no attribute...
1
by: Arthur Pratz | last post by:
Hi all, I have a two page web site and im trying to set it up so that when you click a link on my link bar, it will take you to my products page. However, depending on what link you click on the...
2
by: Json | last post by:
Ok, brand new to SQLXML 3.0 and its various issues. Heres what I'm trying to do: 1. I am trying to load xml data into an empty SQL table from my .NET console application. 2. This isn't a huge...
0
by: Jon Cosby | last post by:
I'm trying to find a simple script for hiding my email until the user chooses to send a message. I thought I might be able to do this with the ServerClick event on the HTML anchor, setting the...
3
by: jparulan | last post by:
Hi All, I'm using SOAP3.0. I was able to successfully call a WSDL file and get a value properly. But when the WSDL changed to have a MULTIPLE <element name> it was failing. This code works...
6
by: ashok.dhananjeyan | last post by:
Hi, Actually , I wrote one javascript to retrieve the name of the form in one particular page. what i did in this page is, <script> function checkbutton() {
6
by: adurth | last post by:
Hi! Is there any function that converts a string containing characters that are invalid for use in an element name to a valid one? Thanks, Andreas
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.