playing with dotnet core 72 - accessing names and values of XElements in XDocuments

Subscribers:
9,750
Published on ● Video Link: https://www.youtube.com/watch?v=G6zc5Y17wao



Duration: 48:35
36 views
1


------------------ Useful Links ------------------------------------
Converting XDocument to XmlDocument and vice versa [Stackoverflow]
https://stackoverflow.com/questions/1508572/converting-xdocument-to-xmldocument-and-vice-versa

XDocument
https://docs.microsoft.com/en-us/dotnet/api/system.xml.linq.xdocument?view=netstandard-2.0

XContainer Elements() method (inherited by XDocument and XElement)
https://docs.microsoft.com/en-us/dotnet/api/system.xml.linq.xcontainer.elements?view=netstandard-2.0#system-xml-linq-xcontainer-elements

XElement Class
https://docs.microsoft.com/en-us/dotnet/api/system.xml.linq.xelement?view=netstandard-2.0

For Each Statement in Visual Basic
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/for-each-next-statement

If Then Else Visual Basic
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/if-then-else-statement




------------------ Video Sections --------------------------------
Chapters:
0:00 Introduction
0:33 IXmlData
3:22 Why XmlDocument
4:30 How dwSimXmlLibBruteForce works (implements IXmlLibLoader)
9:37 Converting XDocument to xmlDocument
12:48 intro to accessing data in xml files
15:10 Elements() method for XDocument and XElement
21:00 testing the elements() method
24:30 nested structure of XElements
28:24 Accessing child nodes of XElement using Elements()
33:44 filtering results of the Elements() method
35:13 poor attempt of accessing name and values of each element
39:06 accessing name and values of the XElement correctly
42:57 extracting the name water (String) from the
46:20 Test Passed for getting the name of water
46:47 Conclusion

---------------------[Playlists and Relevant Github Repositories]----------------------------------------------

Fluid Mechanics and Git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSmdAXc6J0XOSQ1b27qsMGt
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube

Petroleum Downstream Crash Course Playlist:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQ13CnhacUqEVk-tZlU4ISE

OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YRhBU4IqSaToQ8_X543YQsZ
https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM

OpenFOAM Intermediate Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSpWX6mSOlwWEOKVa6i_iuE
https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh

OpenFOAM Heat Transfer Playlist and GitHub Repo
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR2Qa3Q9-AzNSF2J9Dc4_qT
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube

Radiation Heat Transfer Learning Journal and Git Repos:
https://www.youtube.com/watch?v=uUzh9kh-WTo&list=PLhPfNw4V4_YRUUVUydQp-n6U-7uu1kJof
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube

Convection Boundary Layer and git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR9pRBpp101Mkuds49vjQ63
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube

Turbulence Modelling Playlist
https://www.youtube.com/watch?v=F_Rxv9uMM3g&list=PLhPfNw4V4_YSnbYkJIBQ1kRN06Mmxe2Be
https://github.com/theodoreOnzGit/turbulenceModelling

LabView Frequency Analysis and Fun (playlist and git repo)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQYE7XqTisMBkpm7gqNS_nl
https://github.com/theodoreOnzGit/Ted_labview_YouTube

Control Systems and Frequency Response
https://www.youtube.com/watch?v=qHY6y7JmB2U&list=PLhPfNw4V4_YRUuWnrtClovPKxU_gJOXH-
https://github.com/theodoreOnzGit/matlabFrequencyResponse.git

OpenFOAM C++
https://github.com/theodoreOnzGit/C-_YouTube_OpenFoam
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT9OgqS7ZPlot_Ucxzc6pQJ

OpenFOAM Bash
https://github.com/theodoreOnzGit/Bash_OpenFOAM_YouTube
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT5zjBhfj5Hj4r4D5eXilcU

Basic Samba
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuWJLufBUpNplitReZX0fB
https://github.com/theodoreOnzGit/sambaVideos

Manjaro Tips and Tricks
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuyXBfJxAvzHJTl0UiWx3h

lammps and Discrete Element Modelling (DEM)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YTdRlnLiu2OUXeTf5ZNVQ9E

playing with dotnet core
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQSTR8sqz0aRVzWlQBq3QUw
dotnet core github repo
https://github.com/theodoreOnzGit/dotnetCoreYoutube




Other Videos By Theo Ong Science and Engineering


2022-05-06playing with dotnet core 82 - IXmlComponentList and open close principle for IXmlLibrarySelector
2022-05-05playing with dotnet core 81 - IXmlLibrarySelector Attempt at Memory Management (Dispose, Finalizers)
2022-05-05playing with dotnet core 80 - IXmlLibrarySelector Asserting Exception Throws in Visual Basic
2022-05-05playing with dotnet core 79 - IXmlLibrarySelector Coding and Testing Implementations
2022-05-05playing with dotnet core 78 - IXmlLibrarySelector Live Coding (Preparing Preliminaries)
2022-05-04playing with dotnet core 77 - IXmlLibraryList Interface
2022-05-04playing with dotnet core 76 - publishing a nuget package with dotnet CLI
2022-05-04playing with dotnet core 73 - extracting properties of water in dwsim xml file
2022-05-04playing with dotnet core 75 - extended example of using mindmaps to plan out interfaces and classes
2022-05-04playing with dotnet core 74 - Theory Tests in XUnit Visual Basic
2022-05-02playing with dotnet core 72 - accessing names and values of XElements in XDocuments
2022-05-02playing with dotnet core 71 - a crude way of loading xml files into XDocuments
2022-04-29playing with dotnet core 70 - a little on xUnit Tests part 2
2022-04-29playing with dotnet core 69 - a little on xUnit Tests part 1
2022-04-29playing with dotnet core 68 - designing an xmlLibLoader Interface using mindmapping and SOLID
2022-04-29playing with dotnet core 67 - I made a nuget package for dwsim xml data
2022-04-25playing with dotnet core 66 - planning out how to write an ideal gas library for netstandard2.0
2022-04-25playing with dotnet core 65 - examining cp for ideal gas dwsim visual basic
2022-04-25playing with dotnet core 64 - attempting to make sense of propertypackage class and redo it
2022-04-25playing with dotnet core 63 - fumbling around with code refactoring pipe vb using mind mapping
2022-04-24playing with dotnet core 62 - attempt to understand DWSim code, why solid principles are impt



Tags:
Engineering
Math
Science
Thermodynamics
Fluid Mechanics
Chemical
Nuclear
Chemical Potential
Fugacity
Enthalpy
Internal Energy
Entropy
First Law
Second law
Gibbs Free Energy
Hemholtz free energy
heat capacity
constant volume
constant pressure
tutorial
petroleum
oil
refinery
downstream
crude
jet
gasoline
gasoil
diesel
computational fluid dynamics
CFD
OpenFoam
Open
Foam
Fluid mechanics
heat transfer
turbulence
conduction
convection
radiation
Linux
Mint
Ubuntu
Manjaro